|
@@ -290,3 +290,9 @@ class PinboardImport(Endpoint):
|
|
|
raise e.BadFileUpload("no file selected")
|
|
|
u.import_pinboard_data(file.stream)
|
|
|
return self.api_ok(u.base_url())
|
|
|
+
|
|
|
+
|
|
|
+@endpoint("/service-worker")
|
|
|
+class ServiceWorker(Endpoint):
|
|
|
+ def route(self, *args, **kwargs):
|
|
|
+ return flask.send_file("../js/serviceWorker.js", mimetype="text/javascript")
|