marco/app/router.js
Râu Cao 8c58a76030
Create new places
And find them in search
2026-01-27 12:58:23 +07:00

14 lines
365 B
JavaScript

import EmberRouter from '@embroider/router';
import config from 'marco/config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function () {
this.route('place', { path: '/place/:place_id' });
this.route('place.new', { path: '/place/new' });
this.route('search');
});