amdp3-metaforums/routes.php

49 lines
1.2 KiB
PHP
Raw 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',
],
'GET:/signup/confirm' => [
'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',
],
'GET:/thread' => [
'controller' => 'ForumThreadController@forum',
],
'GET:/thread/editor' => [
'controller' => 'ForumThreadController@editor',
],
2019-11-18 13:33:45 +00:00
];