Commit ec1ff69c authored by Stephen Sawchuk's avatar Stephen Sawchuk
parent 09a5b84e
......@@ -13,7 +13,7 @@ angular.module('todomvc')
// Detect if an API backend is present. If so, return the API module, else
// hand off the localStorage adapter
return $http.head('/api')
return $http.get('/api')
.then(function () {
return $injector.get('api');
}, function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment