Files
web2.0-backend/members/static/js/members_routers.js
T
2016-08-15 21:28:10 +03:00

31 lines
935 B
JavaScript

app.config(['$routeProvider', function($routeProvider){
$routeProvider
.when('/',{
templateUrl:"/static/html/jasenlista.html",
controller:'getController',
})
.when('/list',{
templateUrl:"/static/html/jasenlista.html",
controller:'getController',
})
.when('/add',{
templateUrl:"/static/html/lisaa_jasen.html",
controller:'postController',
})
.when('/edit/:id',{
templateUrl:"/static/html/muokkaa_jasenta.html",
controller:'editController',
})
.when('/applications',{
templateUrl:"/static/html/jasenhakemukset.html",
controller:'applController',
})
.when('/applications/edit/:id',{
templateUrl:"/static/html/muokkaa_hakemusta.html",
controller:'appleditController',
})
.otherwise({
'redirectTo':"/"
})
}]);