UNPKG

ember-cli-memserver

Version:

Mock HTTP Server + In-memory ORM/DB for Ember.js. Fastboot compliant MemServer bindings for Ember-cli. Built for large frontend teams, fast tests and rapid prototyping

18 lines (13 loc) 346 B
import Ember from 'ember'; import config from './config/environment'; const Router = Ember.Router.extend({ location: config.locationType, rootURL: config.rootURL }); Router.map(function() { this.route('index', { path: '/' }); this.route('users', function() { this.route('user', { path: '/:id' }); }); }); export default Router;