zend-blog-3-backend
32 строки · 1.1 Кб
1import Ember from 'ember';2import config from 'mtt-blog/config/environment';3
4const Router = Ember.Router.extend({5location: config.locationType6});7
8Router.map(function () {9this.route('dashboard', {path: '/'});10this.route('posts');11this.route('postedit', {path: '/post/:post_id'});12this.route('postimages', {path: '/post-images/:post_id'});13this.route('postcreate');14this.route('tags');15this.route('category');16this.route('comments');17this.route('commentators');18this.route('images');19this.route('reply-comment', {path: '/reply-comment/:comment_id'});20this.route('pygmentsLanguages', {path: '/syntaxes'});21this.route('pygmentsCode', {path: '/codes'});22this.route('pygmentsCodeCreate', {path: '/code-create'});23this.route('pygmentsCodeEdit', {path: '/code-edit/:code_id'});24this.route('userAgent', {path: '/user-agent'});25this.route('tracking');26this.route('telegramUser');27this.route('telegramUpdate');28this.route('replyTelegramUpdate', {path: '/reply-telegram/:update_id'});29this.route('users');30});31
32export default Router;33