meilisearch-admin/app/router.js

19 lines
471 B
JavaScript
Raw Normal View History

import EmberRouter from '@ember/routing/router';
import config from 'meilisearch-admin/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-03-24 09:57:48 +00:00
this.route('item', { path: '/:uid' }, function () {
2022-03-23 15:09:41 +00:00
this.route('settings');
this.route('data');
});
2022-03-21 11:45:47 +00:00
});
2021-06-06 08:19:23 +00:00
});
});