updated schedule api; updated index routing; + routing based on Accept header;

This commit is contained in:
tmshv committed 2015-03-01 01:59:00 +03:00
1 parent 6af90258c9
commit a694abb3e5
6 files changed
+148 -29

No files matched your search

+3 -1
View File
@@ -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);