diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-02-07 11:10:44 +0100 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-02-07 11:10:44 +0100 |
| commit | cfe4616c4af86743aa6771f427be98dc4412433b (patch) | |
| tree | 06a2e93a73f29fa27c691a4958ae7924d894f6cf /client/js/app.js | |
| parent | bd81674a85677378b8a6a167439cac92c807dc23 (diff) | |
Configure http provider
Diffstat (limited to 'client/js/app.js')
| -rw-r--r-- | client/js/app.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/client/js/app.js b/client/js/app.js index 451df66..90fae89 100644 --- a/client/js/app.js +++ b/client/js/app.js @@ -6,9 +6,11 @@ var mainApp=angular.module("mainApp",['ngRoute', 'ngSanitize']); /** - * Configure the router + * Configure routeProvider */ mainApp.config(['$routeProvider', function($routeProvider){ + + $routeProvider. when('/home',{ templateUrl: 'partials/home/main.html', @@ -22,5 +24,11 @@ mainApp.config(['$routeProvider', function($routeProvider){ }); }]); - +/** + * Configure httpProvider + */ +mainApp.config(['$httpProvider', function($httpProvider){ + $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8'; + +}]); |
