aboutsummaryrefslogtreecommitdiffstats
path: root/src/loggergae/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/loggergae/api.py')
-rwxr-xr-xsrc/loggergae/api.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/loggergae/api.py b/src/loggergae/api.py
index f931b63..b62b0da 100755
--- a/src/loggergae/api.py
+++ b/src/loggergae/api.py
@@ -17,6 +17,12 @@ class MainPage(webapp2.RequestHandler):
path = os.path.join(os.path.dirname(__file__), 'index.html')
self.response.out.write(template.render(path, {}))
+class DebuggerPage(webapp2.RequestHandler):
+ def get(self):
+ self.response.headers['Content-Type'] = 'text/html'
+ path = os.path.join(os.path.dirname(__file__), 'debugger.html')
+ self.response.out.write(template.render(path, {}))
+
class DocumentationPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/html'
@@ -90,5 +96,6 @@ app = webapp2.WSGIApplication([
('/api/get', StreamGet),
('/api/set', StreamSet),
('/docs', DocumentationPage),
+ ('/debug', DebuggerPage),
('/', DocumentationPage)
], debug=True) \ No newline at end of file