mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Merge pull request #390 from minrk/swagger-api
move swagger API handler off of existing `/api`
This commit is contained in:
commit
931fbb4f50
@ -15,8 +15,9 @@ class APIHandler(web.StaticFileHandler, IPythonHandler):
|
||||
@web.authenticated
|
||||
def get(self):
|
||||
self.log.debug("Serving api")
|
||||
self.set_header('Content-Type', 'text/x-yaml')
|
||||
return web.StaticFileHandler.get(self, 'api.yaml')
|
||||
|
||||
default_handlers = [
|
||||
(r"/api", APIHandler)
|
||||
(r"/api/spec.yaml", APIHandler)
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user