meilisearch-admin/app/router.js
Stanislav Romanov deff5ce2e7 Add task route
2022-09-15 17:31:30 +03:00

35 lines
997 B
JavaScript

import EmberRouter from '@ember/routing/router';
import config from 'meiliadmin/config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function () {
this.route('admin', function () {
this.route('indexes', function () {
this.route('item', { path: '/:index_uid' }, function () {
this.route('settings');
this.route('info');
this.route('edit');
this.route('documents', function () {
this.route('document', { path: '/:document_id' }, function () {
this.route('edit');
this.route('delete');
});
this.route('new');
});
this.route('delete');
});
this.route('new');
});
this.route('keys', function () {
this.route('key', { path: '/:uid' });
});
this.route('tasks', function () {
this.route('task', { path: '/:uid' });
});
});
this.route('login');
});