1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-16 00:00:03 +01:00
VILLASweb/app/router.js
Markus Grigull 6b8223df43 Fix user login/logout
Add logout route as buffer between logged-in state and login form
Fix setting current user in service
Fix message on invalid credentials in login form
Don't save the user password
2016-07-05 11:50:31 +02:00

34 lines
859 B
JavaScript

import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.route('login');
this.route('projects');
this.route('project', function() {
this.route('index', { path: '/:projectid' });
this.route('new');
this.route('edit', { path: '/edit/:projectid' });
this.route('delete', { path: '/delete/:projectid' });
});
this.route('user', function() {
this.route('edit');
});
this.route('visualization', function() {
this.route('index', { path: '/:visualizationid' });
this.route('new');
this.route('edit', { path: '/edit/:visualizationid' });
this.route('delete', { path: '/delete/:visualizationid' });
});
this.route('404', { path: '/*path' });
this.route('logout');
});
export default Router;