Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- angular.module('restGallery', ['ngResource', 'ngRoute'])
- .config(['$routeProvider', '$locationProvider',
- function($routeProvider, $locationProvider){
- $routeProvider
- .when('/', {
- templateUrl: 'static/partials/landing.html',
- controller: IndexConroller
- })
- .when('/about', {
- templateUrl: 'static/partials/about.html',
- controller: AboutController
- })
- .when('/image/:imageId', {
- templateUrl: 'static/partials/image/image-detail.html',
- controller: ImageDetailController
- })
- .when('/image', {
- templateUrl: 'static/partials/image/image-list.html',
- controller: ImageListController
- })
- .when('/user/:userId', {
- templateUrl: 'static/partials/user/user-detail.html',
- controller: UserDetailController
- })
- .when('/user', {
- templateUrl: 'static/partials/user/user-list.html',
- controller: UserListController
- })
- .when('/gallery/:galleryId',{
- templateUrl: 'static/partials/gallery/gallery-detail.html',
- controller: GalleryDetailController
- })
- .when('/gallery', {
- templateUrl: 'static/partials/gallery/gallery-list.html',
- controller: GalleryListController
- })
- .otherwise({
- redirectTo: '/'
- });
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement