updated schedule api; updated index routing; + routing based on Accept header;
This commit is contained in:
1 parent
6af90258c9
commit
a694abb3e5
6 files changed
+148
-29
No files matched your search
+3
-1
@@ -46,10 +46,12 @@ app.config(function ($locationProvider, $routeProvider) {
|
||||
});
|
||||
});
|
||||
|
||||
app.run(function($location, $rootScope) {
|
||||
app.run(function($location, $rootScope, $http) {
|
||||
$rootScope.$on("$routeChangeSuccess", function (event, current, previous) {
|
||||
$rootScope.title = current.$$route.title;
|
||||
});
|
||||
|
||||
$http.defaults.headers.common["Accept"] = "application/json";
|
||||
});
|
||||
|
||||
require("./api/api")(app);
|
||||
|
||||
Reference in new issue
Block a user