linstrom/frontend-reactive/app/router.ts

16 lines
347 B
TypeScript
Raw Normal View History

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