From ac29892431d651516c778642420cb65059dc8331 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 7 Sep 2010 22:09:13 -0700 Subject: [PATCH] hello handler. --- blobserver/appengine/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/blobserver/appengine/main.py b/blobserver/appengine/main.py index 74da10817..3abb16ece 100644 --- a/blobserver/appengine/main.py +++ b/blobserver/appengine/main.py @@ -93,6 +93,13 @@ class Blob(db.Model): size = db.IntegerProperty(indexed=False) +class HelloHandler(webapp.RequestHandler): + """Present ourselves to the world.""" + + def get(self): + self.response.out.write('Hello! This is an AppEngine Camlistore blob server.') + + class ListHandler(webapp.RequestHandler): """Return chunks that the server has.""" @@ -299,6 +306,7 @@ class ErrorHandler(webapp.RequestHandler): APP = webapp.WSGIApplication( [ + ('/', HelloHandler), ('/camli/enumerate-blobs', ListHandler), ('/camli/preupload', PreuploadHandler), ('/camli/([^/]+)', GetHandler),