API is POST for service worker

This commit is contained in:
Jori Lallo
2016-07-21 22:14:55 -07:00
parent d2780233c1
commit db86dbb797

View File

@ -76,9 +76,9 @@ Cache.prototype.addAll||(Cache.prototype.addAll=function(t){function e(t){this.n
global.toolbox.router.get(/\/static\//, global.toolbox.cacheFirst);
// API get calls
global.toolbox.router.get(/\/api\//, global.toolbox.networkFirst);
global.toolbox.router.post(/\/api\//, global.toolbox.networkFirst);
// global.toolbox.router.default = global.toolbox.networkFirst;
global.toolbox.router.default = global.toolbox.networkFirst;
// Boilerplate to ensure our service worker takes control of the page as soon
// as possible.