meilisearch-admin/app/router.js

42 lines
1.2 KiB
JavaScript
Raw Normal View History

import EmberRouter from '@ember/routing/router';
2022-08-28 11:19:36 +00:00
import config from 'meiliadmin/config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
2021-06-06 08:19:23 +00:00
Router.map(function () {
2022-03-21 11:45:47 +00:00
this.route('admin', function () {
this.route('indexes', function () {
2022-09-01 08:32:02 +00:00
this.route('item', { path: '/:index_uid' }, function () {
2022-10-15 09:48:28 +00:00
this.route('settings');
2022-08-29 11:30:47 +00:00
this.route('info');
2022-08-30 09:48:13 +00:00
this.route('edit');
2022-08-30 11:59:24 +00:00
this.route('documents', function () {
2022-09-01 10:02:37 +00:00
this.route('document', { path: '/:document_id' }, function () {
this.route('edit');
2022-09-01 10:28:54 +00:00
this.route('delete');
2022-09-01 10:02:37 +00:00
});
2022-09-01 09:14:56 +00:00
this.route('new');
2022-08-30 11:59:24 +00:00
});
2022-09-01 14:08:19 +00:00
this.route('delete');
2022-03-23 15:09:41 +00:00
});
2022-08-30 10:15:36 +00:00
this.route('new');
2022-03-21 11:45:47 +00:00
});
2022-08-29 13:46:11 +00:00
this.route('keys', function () {
2022-09-19 10:22:29 +00:00
this.route('key', { path: '/:uid' }, function () {
this.route('edit');
2022-09-19 10:57:46 +00:00
this.route('delete');
2022-09-19 10:22:29 +00:00
});
2022-09-19 10:35:56 +00:00
this.route('new');
2022-08-29 13:46:11 +00:00
});
2022-09-15 14:31:30 +00:00
this.route('tasks', function () {
this.route('task', { path: '/:uid' });
});
2022-09-19 12:21:24 +00:00
this.route('dumps', function () {});
2021-06-06 08:19:23 +00:00
});
2022-08-20 06:35:34 +00:00
this.route('login');
2022-09-19 07:10:52 +00:00
this.route('not-found', { path: '/*path' });
2021-06-06 08:19:23 +00:00
});