2018-06-20 11:50:31 +08:00
|
|
|
import DashboardPage from './components/DashboardPage';
|
|
|
|
import BasicsPage from './components/BasicsPage';
|
|
|
|
import PermissionsPage from './components/PermissionsPage';
|
|
|
|
import AppearancePage from './components/AppearancePage';
|
|
|
|
import ExtensionsPage from './components/ExtensionsPage';
|
|
|
|
import MailPage from './components/MailPage';
|
2015-04-25 20:58:39 +08:00
|
|
|
|
2015-07-29 19:28:22 +08:00
|
|
|
/**
|
2018-06-20 11:50:31 +08:00
|
|
|
* The `routes` initializer defines the forum app's routes.
|
2015-07-29 19:28:22 +08:00
|
|
|
*
|
|
|
|
* @param {App} app
|
|
|
|
*/
|
2020-04-17 17:57:55 +08:00
|
|
|
export default function (app) {
|
2015-04-25 20:58:39 +08:00
|
|
|
app.routes = {
|
2020-04-17 17:57:55 +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
|
|
|
};
|
|
|
|
}
|