@@ -81,46 +81,28 @@ sub startup ($self) {
8181 $r -> post( ' /logout' )-> to( ' Root#post_logout' )-> name(' do_logout' );
8282
8383 # /user/ routes
84- $r -> get ( ' /user/:name' )-> to( ' User#get_user' )-> name( ' user' );
85- $auth -> post( ' /user/:name/follow' )-> to( ' User#post_follow' )-> name( ' do_follow_user' );
86- $auth -> post( ' /user/:name/unfollow' )-> to( ' User#post_unfollow' )-> name( ' do_unfollow_user' );
87- $auth -> get ( ' /user/settings' )-> to( ' User#get_settings' )-> name( ' user_settings' );
88- $auth -> post( ' /user/settings/bio' )-> to( ' User#post_bio' )-> name( ' do_user_bio' );
89- $auth -> post( ' /user/settings/about' )-> to( ' User#post_about' )-> name( ' do_user_about' );
90- $auth -> post( ' /user/settings/password' )-> to( ' User#post_password' )-> name( ' do_user_password' );
91- $auth -> post( ' /user/settings/email' )-> to( ' User#post_email' )-> name( ' do_user_email' );
84+ # $r->get ( '/user/:name' )->to( 'User#get_user' )->name( 'user' );
85+ # $auth->post( '/user/:name/follow' )->to( 'User#post_follow' )->name( 'do_follow_user' );
86+ # $auth->post( '/user/:name/unfollow' )->to( 'User#post_unfollow')->name( 'do_unfollow_user' );
87+ # $auth->get ( '/user/settings' )->to( 'User#get_settings' )->name( 'user_settings' );
88+ # $auth->post( '/user/settings/bio' )->to( 'User#post_bio' )->name( 'do_user_bio' );
89+ # $auth->post( '/user/settings/about' )->to( 'User#post_about' )->name( 'do_user_about' );
90+ # $auth->post( '/user/settings/password')->to( 'User#post_password')->name( 'do_user_password' );
91+ # $auth->post( '/user/settings/email' )->to( 'User#post_email' )->name( 'do_user_email' );
9292
9393 # /blog/ routes
9494 $r -> get ( ' /blog/new' )-> to( ' Blog#get_new_blogs' )-> name( ' new_blogs' ); # List new blogs.
9595 $r -> post ( ' /blog/new' )-> to( ' Blog#post_new_blog' )-> name( ' do_new_blog' ); # Create a new blog.
9696 $r -> get ( ' /blog/new/:id' )-> to( ' Blog#get_edit_new_blog' )-> name( ' edit_new_blog' ); # Show edit a new blog page.
9797 $r -> post ( ' /blog/new/:id' )-> to( ' Blog#post_edit_new_blog' )-> name( ' do_edit_new_blog' ); # Update a new blog.
9898 $auth -> post( ' /blog/publish/:id' )-> to( ' Blog#post_publish_new_blog' )-> name( ' do_publish_new_blog' ); # Publish (PendingBlog -> Blog.)
99-
100- $r -> get ( ' /blog/v/:slug' )-> to( ' Blog#get_view_blog' )-> name( ' view_blog' );
101- $r -> get ( ' /blog/e/:slug' )-> to( ' Blog#get_edit_blog' )-> name( ' edit_blog' );
102- $r -> post ( ' /blog/e/:slug' )-> to( ' Blog#post_edit_blog' )-> name( ' do_edit_blog' );
103-
104- $r -> post ( ' /blog/follow' )-> to( ' Blog#post_blog_follow' )-> name( ' do_follow_blog' );
105- $r -> post ( ' /blog/unfollow' )-> to( ' Blog#post_blog_unfollow' )-> name( ' do_unfollow_blog' );
106-
107- $r -> post ( ' /blog/comment' )-> to( ' Blog#post_blog_comment' )-> name( ' do_blog_comment' );
99+ $r -> get ( ' /blog/v/:slug' )-> to( ' Blog#get_view_blog' )-> name( ' view_blog' ); # View specific blog
100+ $auth -> get ( ' /blog/e/:slug' )-> to( ' Blog#get_edit_blog' )-> name( ' edit_blog' ); # View edit page
101+ $auth -> post( ' /blog/e/:slug' )-> to( ' Blog#post_edit_blog' )-> name( ' do_edit_blog' ); # Post edits to blog
102+ $auth -> post( ' /blog/follow' )-> to( ' Blog#post_blog_follow' )-> name( ' do_follow_blog' ); # Follow a blog
103+ $auth -> post( ' /blog/unfollow' )-> to( ' Blog#post_blog_unfollow' )-> name( ' do_unfollow_blog' ); # Unfollow a blog
104+ $auth -> post( ' /blog/comment' )-> to( ' Blog#post_blog_comment' )-> name( ' do_blog_comment' ); # Comment on blog/reply.
108105
109- # $r->post ( '/blog/unfollow' )->to( 'Blog#post_blog_unfollow' )->name( 'do_unfollow_blog');
110- # $r->get ( '/view/:id/:name' )->to( 'Blog#get_blog' )->name( 'blog' ); # View A Specific Blog.
111- #
112- # $auth->get ( '/blog/new' )->to( 'Blog#get_new_blogs' )->name( 'new_blogs' ); # List pending blogs for approval.
113- # $r->get ( '/blog/new/:id/:title' )->to( 'Blog#get_edit_blog' )->name( 'edit_new_blog' ); # Get the edit page for a new blog.
114- # $r->post ( '/blog/new/:name' )->to( 'Blog#post_edit_blog' )->name( 'do_edit_new_blog' ); # Post an update with the edit page.
115- #
116- # $auth->post( '/blog/:name/follow' )->to( 'Blog#post_follow' )->name( 'do_follow_blog' );
117- # $auth->post( '/blog/:name/unfollow' )->to( 'Blog#post_unfollow' )->name( 'do_unfollow_blog' );
118- # $auth->get ( '/blog/:name/settings' )->to( 'Blog#get_settings' )->name( 'blog_settings' );
119- # $auth->post( '/blog/:name' )->to( 'Blog#post_settings' )->name( 'do_blog_settings' );
120- # $auth->post( '/blog/:name/publish' )->to( 'Blog#post_publish' )->name( 'do_publish' );
121- # $auth->post( '/blog/:name/unpublish' )->to( 'Blog#post_unpublish')->name( 'do_unpublish' );
122-
123-
124106 # /tags/
125107 $r -> get ( ' /tags' )-> to( ' Tags#get_tags' )-> name( ' tags' );
126108 $auth -> post( ' /tags/suggest' )-> to( ' Tags#post_suggest_tag' )-> name( ' do_suggest_tag' );
0 commit comments