linstrom/frontend-src/app/router.ts

15 lines
377 B
TypeScript
Raw Normal View History

2024-08-22 17:57:53 +00:00
import EmberRouter from '@ember/routing/router';
import config from 'frontend-src/config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function () {
this.route('notes', function () {
this.route('note', { path: '/:note_id' });
this.route('index', { path: '/' });
});
});