2015-07-29 19:28:22 +08:00
|
|
|
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-23 21:19:02 +08:00
|
|
|
import MailPage from 'flarum/components/MailPage';
|
2015-04-25 20:58:39 +08:00
|
|
|
|
2015-07-29 19:28:22 +08:00
|
|
|
/**
|
|
|
|
* The `routes` initializer defines the admin app's routes.
|
|
|
|
*
|
|
|
|
* @param {App} app
|
|
|
|
*/
|
2015-04-25 20:58:39 +08:00
|
|
|
export default function(app) {
|
|
|
|
app.routes = {
|
2015-07-29 19:28:22 +08:00
|
|
|
'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-17 00:04:54 +08:00
|
|
|
'extensions': {path: '/extensions', component: ExtensionsPage.component()},
|
2016-04-23 21:19:02 +08:00
|
|
|
'mail': {path: '/mail', component: MailPage.component()}
|
2015-04-25 20:58:39 +08:00
|
|
|
};
|
|
|
|
}
|