From 66d15ce3045c3565ca52507478fa1ea511604fa3 Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 24 Sep 2015 23:26:43 +0200 Subject: [PATCH] Don't re-use APIHandler name for serving yaml spec --- notebook/services/api/handlers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notebook/services/api/handlers.py b/notebook/services/api/handlers.py index c13b4721b..76c662edd 100644 --- a/notebook/services/api/handlers.py +++ b/notebook/services/api/handlers.py @@ -7,17 +7,17 @@ from tornado import web from ...base.handlers import IPythonHandler import os -class APIHandler(web.StaticFileHandler, IPythonHandler): +class APISpecHandler(web.StaticFileHandler, IPythonHandler): def initialize(self): web.StaticFileHandler.initialize(self, path=os.path.dirname(__file__)) @web.authenticated def get(self): - self.log.debug("Serving api") + self.log.warn("Serving api spec (experimental, incomplete)") self.set_header('Content-Type', 'text/x-yaml') return web.StaticFileHandler.get(self, 'api.yaml') default_handlers = [ - (r"/api/spec.yaml", APIHandler) + (r"/api/spec.yaml", APISpecHandler) ]