diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2016-01-27 13:01:16 +0100 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2016-01-27 13:01:16 +0100 |
commit | 712446796a33a47ea7e5fafd7950141ac8060530 (patch) | |
tree | 72ddf32d3dbf4207fe29a70f9c84819477ece38c /afm-client/app/Frontend/etc | |
parent | 33940e952258bf1026a5f2c0687e4da01bc66004 (diff) |
Handle Error Modal on upload
Diffstat (limited to 'afm-client/app/Frontend/etc')
-rw-r--r-- | afm-client/app/Frontend/etc/AppConfig.js | 5 | ||||
-rw-r--r-- | afm-client/app/Frontend/etc/routes.js | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/afm-client/app/Frontend/etc/AppConfig.js b/afm-client/app/Frontend/etc/AppConfig.js index 16a2c87..16c05b5 100644 --- a/afm-client/app/Frontend/etc/AppConfig.js +++ b/afm-client/app/Frontend/etc/AppConfig.js @@ -15,7 +15,8 @@ image : 'images/', icons : 'images/icons/', avatar: 'images/avatars/', - audio : 'images/audio/' + audio : 'images/audio/', + appli : 'images/appli/' }, myapi: { // Warning paths should end with / @@ -43,7 +44,7 @@ .factory('AppCall', function ($http, AppConfig) { var myCalls = { get : function(plugin, action, query, callback) { - query["token"] = AppConfig.session.token; // add token to provided query + query.token = AppConfig.session.token; // add token to provided query $http.get('/api/' + plugin + '/' + action , {params: query}).then (callback, callback); } diff --git a/afm-client/app/Frontend/etc/routes.js b/afm-client/app/Frontend/etc/routes.js index 18d281a..31b2d52 100644 --- a/afm-client/app/Frontend/etc/routes.js +++ b/afm-client/app/Frontend/etc/routes.js @@ -1 +1 @@ -var foundationRoutes = [{"name":"mysample","url":"/sample","controller":"SampleController as ctrl","animationIn":"slideInRight","path":"pages/Sample/Sample.html"},{"name":"Dashboard","url":"/dashboard","controller":"DashboardController as ctrl","animationIn":"slideInRight","path":"pages/Dashboard/Dashboard.html"},{"name":"dashboard","url":"/dashboard","controller":"DashboardController as ctrl","animationIn":"slideInRight","path":"pages/Home/Dashboard.html"}]; +var foundationRoutes = [{"name":"Dashboard","url":"/dashboard","controller":"DashboardController as ctrl","animationIn":"slideInRight","path":"pages/Dashboard/Dashboard.html"}]; |