zend-blog-3-backend

Форк
0
32 строки · 1.1 Кб
1
import Ember from 'ember';
2
import config from 'mtt-blog/config/environment';
3

4
const Router = Ember.Router.extend({
5
    location: config.locationType
6
});
7

8
Router.map(function () {
9
    this.route('dashboard', {path: '/'});
10
    this.route('posts');
11
    this.route('postedit', {path: '/post/:post_id'});
12
    this.route('postimages', {path: '/post-images/:post_id'});
13
    this.route('postcreate');
14
    this.route('tags');
15
    this.route('category');
16
    this.route('comments');
17
    this.route('commentators');
18
    this.route('images');
19
    this.route('reply-comment', {path: '/reply-comment/:comment_id'});
20
    this.route('pygmentsLanguages', {path: '/syntaxes'});
21
    this.route('pygmentsCode', {path: '/codes'});
22
    this.route('pygmentsCodeCreate', {path: '/code-create'});
23
    this.route('pygmentsCodeEdit', {path: '/code-edit/:code_id'});
24
    this.route('userAgent', {path: '/user-agent'});
25
    this.route('tracking');
26
    this.route('telegramUser');
27
    this.route('telegramUpdate');
28
    this.route('replyTelegramUpdate', {path: '/reply-telegram/:update_id'});
29
    this.route('users');
30
});
31

32
export default Router;
33

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.