1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-06-24 23:34:03 +00:00

rebuild app structure

This commit is contained in:
Rokt33r
2015-06-08 03:56:28 +09:00
parent 010ee6a711
commit 67d8183582
61 changed files with 705 additions and 1266 deletions
+57
View File
@@ -0,0 +1,57 @@
/* global angular */
angular.module('codexen')
.config(function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider
.when('/auth', '/auth/register')
.when('/auth/', '/auth/register')
.otherwise('/')
$stateProvider
/* Auth */
.state('auth', {
url: '/auth',
views: {
'main-view': {
templateUrl: 'tpls/states/auth.tpl.html'
}
}
})
.state('auth.register', {
url: '/register',
templateUrl: 'tpls/states/auth.register.tpl.html',
controller: 'AuthRegisterController as vm'
})
.state('auth.signin', {
url: '/signin',
templateUrl: 'tpls/states/auth.signin.tpl.html',
controller: 'AuthSignInController as vm'
})
/* Snippets */
.state('snippets', {
url: '/snippets',
views: {
'main-view': {
templateUrl: 'tpls/states/snippets.list.tpl.html',
controller: 'SnippetsListController as vm'
}
}
})
.state('snippets.detail', {
url: '/:id',
templateUrl: 'tpls/states/snippets.detail.tpl.html',
controller: 'SnippetsDetailController as vm'
})
/* Home */
.state('home', {
url: '/',
views: {
'main-view': {
templateUrl: 'tpls/states/home.tpl.html',
controller: 'HomeController as vm'
}
}
})
})