This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/routes.php

78 lines
2 KiB
PHP
Raw Normal View History

2016-01-30 00:18:23 +00:00
<?php
/*
* Router paths
*/
// Define namespace
namespace Sakura;
2016-01-30 13:25:18 +00:00
// Meta pages
2016-02-27 16:46:16 +00:00
Router::get('/', 'MetaController@index', 'main.index');
Router::get('/faq', 'MetaController@faq', 'main.faq');
Router::get('/search', 'MetaController@search', 'main.search');
Router::get('/p/{id}', 'MetaController@infoPage', 'main.infopage');
2016-01-30 13:25:18 +00:00
2016-02-05 12:26:31 +00:00
// Auth
2016-02-27 16:46:16 +00:00
Router::get('/login', 'AuthController@loginGet', 'auth.login');
Router::post('/login', 'AuthController@loginPost', 'auth.login');
Router::get('/logout', 'AuthController@logout', 'auth.logout');
2016-02-28 17:45:25 +00:00
Router::get('/register', 'AuthController@registerGet', 'auth.register');
Router::post('/register', 'AuthController@registerPost', 'auth.register');
2016-02-05 12:26:31 +00:00
2016-01-30 13:25:18 +00:00
// News
2016-02-27 16:46:16 +00:00
Router::get('/news', 'MetaController@news', 'news.index');
Router::get('/news/{category}', 'MetaController@news', 'news.category');
Router::get('/news/{category}/{id}', 'MetaController@news', 'news.post');
2016-01-30 13:25:18 +00:00
// Forum
2016-02-27 16:46:16 +00:00
Router::get('/forum', 'ForumController@index', 'forums.index');
Router::get('/forum/{id}', 'ForumController@forum', 'forums.forum');
2016-02-04 20:56:40 +00:00
// Members
2016-02-27 16:46:16 +00:00
Router::get('/members', 'UserController@members', 'members.index');
Router::get('/members/{rank}', 'UserController@members', 'members.rank');
2016-02-04 20:56:40 +00:00
// User
2016-02-27 16:46:16 +00:00
Router::get('/u/{id}', 'UserController@profile', 'user.profile');
Router::get('/u/{id}/header', 'FileController@header', 'user.header');
2016-02-15 21:20:46 +00:00
// Files
2016-02-27 16:46:16 +00:00
Router::get('/a/{id}', 'FileController@avatar', 'file.avatar');
Router::get('/bg/{id}', 'FileController@background', 'file.background');
2016-01-30 13:25:18 +00:00
2016-02-13 13:36:21 +00:00
// Premium
2016-02-27 16:46:16 +00:00
Router::get('/support', 'PremiumController@index', 'premium.index');
Router::get('/support/tracker', 'PremiumController@tracker', 'premium.tracker');
2016-02-13 13:36:21 +00:00
2016-02-15 21:20:46 +00:00
// Management
/*
* General
* - Dashboard
* - Info pages (possibly deprecate with wiki)
* Configuration
* - General
* - Files
* - User
* - Mail
* Forums
* - Manage
* - Settings
* Comments
* - Manage
* Users
* - Manage users
* - Manage ranks
* - Profile fields
* - Option fields
* - Bans and restrictions
* - Warnings
* Permissions
* - Site
* - Management
* - Forum
* Logs
* - Actions
* - Management
* - Errors
*/