2015-07-29 20:58:22 +09:30
|
|
|
import DashboardPage from 'flarum/components/DashboardPage';
|
|
|
|
import BasicsPage from 'flarum/components/BasicsPage';
|
|
|
|
import PermissionsPage from 'flarum/components/PermissionsPage';
|
|
|
|
import AppearancePage from 'flarum/components/AppearancePage';
|
|
|
|
import ExtensionsPage from 'flarum/components/ExtensionsPage';
|
2016-04-16 12:04:54 -04:00
|
|
|
import AdvancedPage from 'flarum/components/AdvancedPage';
|
2015-04-25 22:28:39 +09:30
|
|
|
|
2015-07-29 20:58:22 +09:30
|
|
|
/**
|
|
|
|
* The `routes` initializer defines the admin app's routes.
|
|
|
|
*
|
|
|
|
* @param {App} app
|
|
|
|
*/
|
2015-04-25 22:28:39 +09:30
|
|
|
export default function(app) {
|
|
|
|
app.routes = {
|
2015-07-29 20:58:22 +09:30
|
|
|
'dashboard': {path: '/', component: DashboardPage.component()},
|
|
|
|
'basics': {path: '/basics', component: BasicsPage.component()},
|
|
|
|
'permissions': {path: '/permissions', component: PermissionsPage.component()},
|
|
|
|
'appearance': {path: '/appearance', component: AppearancePage.component()},
|
2016-04-16 12:04:54 -04:00
|
|
|
'extensions': {path: '/extensions', component: ExtensionsPage.component()},
|
|
|
|
'advanced': {path: '/advanced', component: AdvancedPage.component()}
|
2015-04-25 22:28:39 +09:30
|
|
|
};
|
|
|
|
}
|