From: hylom Date: Tue, 4 Apr 2017 13:24:15 +0000 (+0900) Subject: Web: change handler for /api/v1/login X-Git-Tag: v0.1.1~762 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=41f8d1d6dc470c7700980b11388e8d04be405cdb;p=newslash%2Fnewslash.git Web: change handler for /api/v1/login --- diff --git a/src/newslash_web/lib/Newslash/Web.pm b/src/newslash_web/lib/Newslash/Web.pm index da1f33a0..9c477421 100644 --- a/src/newslash_web/lib/Newslash/Web.pm +++ b/src/newslash_web/lib/Newslash/Web.pm @@ -159,7 +159,7 @@ sub startup { my $api = $r->under('/api/v1'); $api->get('/sidebars')->to('admin-sidebar#list'); - $api->post('/login')->to('API::Login#check_password'); + $api->post('/login')->to('API::Login#login'); $api->get('/comment')->to('API::Comment#get'); $api->post('/comment')->to('API::Comment#post');