mirror of
https://github.com/arnaucube/openEventsPlatformApp.git
synced 2026-02-08 12:16:39 +01:00
login logout implemented
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//var urlapi = "http://localhost:3000/api/";
|
||||
var urlapi = "http://192.168.1.34:3000/api/";
|
||||
var urlapi = "http://localhost:3000/api/";
|
||||
//var urlapi = "http://192.168.1.34:3000/api/";
|
||||
|
||||
|
||||
|
||||
@@ -13,8 +13,10 @@ angular.module('app', [
|
||||
'app.event',
|
||||
'app.alerts',
|
||||
'app.savedEvents',
|
||||
'app.byCategories',
|
||||
'app.users',
|
||||
'app.user'
|
||||
'app.user',
|
||||
'app.login'
|
||||
])
|
||||
|
||||
.run(function($ionicPlatform) {
|
||||
@@ -89,6 +91,15 @@ angular.module('app', [
|
||||
}
|
||||
}
|
||||
})
|
||||
.state('app.byCategories', {
|
||||
url: '/byCategories',
|
||||
views: {
|
||||
'menuContent': {
|
||||
templateUrl: 'templates/byCategories.html',
|
||||
controller: 'ByCategoriesCtrl'
|
||||
}
|
||||
}
|
||||
})
|
||||
.state('app.users', {
|
||||
url: '/users',
|
||||
views: {
|
||||
@@ -106,6 +117,15 @@ angular.module('app', [
|
||||
controller: 'UserCtrl'
|
||||
}
|
||||
}
|
||||
})
|
||||
.state('app.login', {
|
||||
url: '/login',
|
||||
views: {
|
||||
'menuContent': {
|
||||
templateUrl: 'templates/login.html',
|
||||
controller: 'LoginCtrl'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// if none of the above states are matched, use this as the fallback
|
||||
|
||||
Reference in New Issue
Block a user