framework/js/admin/src/initializers/routes.js

23 lines
945 B
JavaScript
Raw Normal View History

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';
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()},
'extensions': {path: '/extensions', component: ExtensionsPage.component()},
'mail': {path: '/mail', component: MailPage.component()}
2015-04-25 20:58:39 +08:00
};
}