Files
web2.0-backend/members/static/js/members_routers.js
T
2017-01-19 14:47:51 +02:00

38 lines
1.1 KiB
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_jasenta.html",
controller:'applEditController',
})
.when('/addmany/',{
templateUrl:"/static/html/lisaa_jasenia.html",
controller:'addManyController',
})
.when('/tommy/',{
templateUrl:"/static/html/tommy.html"
})
.otherwise({
'redirectTo':"/"
})
}]);