amdp3-metaforums/routes.php

88 lines
2.3 KiB
PHP
Raw Permalink Normal View History

2019-11-18 13:33:45 +00:00
<?php
return [
'GET:' => [
'controller' => 'IndexController@index',
],
'GET:/signup' => [
'controller' => 'AuthController@sign_up',
],
'POST:/signup' => [
'controller' => 'AuthController@create_user',
],
2019-11-21 16:28:57 +00:00
'GET:/email/confirm' => [
2019-11-18 13:33:45 +00:00
'controller' => 'AuthController@sign_up_confirm',
],
'GET:/login' => [
'controller' => 'AuthController@login',
],
'POST:/login' => [
'controller' => 'AuthController@login_check',
],
'GET:/logout' => [
'controller' => 'AuthController@logout',
],
2019-11-19 03:36:39 +00:00
'GET:/login/forget' => [
'controller' => 'AuthController@forget_password',
],
'POST:/login/forget' => [
'controller' => 'AuthController@forget_password_confirm',
],
'GET:/login/reset' => [
'controller' => 'AuthController@reset_password',
],
'POST:/login/reset' => [
'controller' => 'AuthController@reset_password_confirm',
],
'GET:/api/get_categories' => [
'controller' => 'ApiController@categories',
],
'GET:/api/get_threads' => [
'controller' => 'ApiController@threads',
],
2019-11-20 05:19:02 +00:00
'GET:/api/favorite' => [
'controller' => 'ApiController@favorite',
],
'GET:/api/favorite_num' => [
'controller' => 'ApiController@favorite_num',
],
'GET:/api/get_reports' => [
'controller' => 'ApiController@reports',
],
2019-11-19 03:36:39 +00:00
'GET:/thread' => [
'controller' => 'ForumThreadController@forum',
],
'GET:/thread/editor' => [
'controller' => 'ForumThreadController@editor',
],
2019-11-20 05:19:02 +00:00
'GET:/thread/moderating_editor' => [
'controller' => 'ForumThreadController@moderating_editor',
],
'POST:/thread/process' => [
'controller' => 'ForumThreadController@process',
],
'POST:/thread/moderate' => [
'controller' => 'ForumThreadController@moderate',
],
'GET:/thread/unlock' => [
'controller' => 'ForumThreadController@unlock',
],
'GET:/profile' => [
'controller' => 'AccountController@profile',
],
'GET:/me' => [
'controller' => 'AccountController@me',
],
'POST:/me/update' => [
'controller' => 'AccountController@update',
],
2019-11-21 16:28:57 +00:00
'POST:/me/update-account' => [
'controller' => 'AccountController@update_account',
],
'GET:/me/confirm' => [
'controller' => 'AccountController@confirm',
],
2019-11-20 05:19:02 +00:00
'GET:/moderation' => [
'controller' => 'IndexController@moderation',
],
2019-11-18 13:33:45 +00:00
];