get('/', ['as' => 'index', 'uses' => 'IndexController@showIndexPage']); $app->get('/logout', ['as' => 'logout', 'uses' => 'UserController@logoutUser']); $app->get('/login', ['as' => 'login', 'uses' => 'UserController@displayLoginPage']); $app->get('/about', ['as' => 'about', 'uses' => 'StaticPageController@displayAbout']); $app->get('/signup', ['as' => 'signup', 'uses' => 'UserController@displaySignupPage']); $app->get('/admin', ['as' => 'admin', 'uses' => 'AdminController@displayAdminPage']); $app->get('/setup', ['as' => 'setup', 'uses' => 'SetupController@displaySetupPage']); $app->post('/setup', ['as' => 'psetup', 'uses' => 'SetupController@performSetup']); $app->get('/{short_url}', ['uses' => 'LinkController@performRedirect']); $app->get('/{short_url}/{secret_key}', ['uses' => 'LinkController@performRedirect']); /* POST endpoints */ $app->post('/login', ['as' => 'plogin', 'uses' => 'UserController@performLogin']); $app->post('/signup', ['as' => 'psignup', 'uses' => 'UserController@performSignup']); $app->post('/shorten', ['as' => 'shorten', 'uses' => 'LinkController@performShorten']); /* API endpoints */ $app->post('/api/v2/link_avail_check', ['as' => 'link_check', 'uses' => 'AjaxController@checkLinkAvailability']);