<reponame>harshp8l/deep-learning-lang-detection<filename>data/train/python/746b01e04b60d32571a88b661a7096b0bd444f18controller.py
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from app.get_story import getStory
from app.save_story import saveStory, saveStoryWorker
from app.pages import frontPage, storyViewer

routes = [
  ('/ajax/save_story', saveStory),
  ('/ajax/get_story', getStory),
  ('/worker/save_story', saveStoryWorker),
  ('/', frontPage),
  (r'.*', storyViewer)
]

application = webapp.WSGIApplication(routes, debug=True)

def main():
  run_wsgi_app(application)

if __name__ == "__main__":
  main()

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from app.get_story import getStory
from app.save_story import saveStory, saveStoryWorker
from app.pages import frontPage, storyViewer

routes = [
  ('/ajax/save_story', saveStory),
  ('/ajax/get_story', getStory),
  ('/worker/save_story', saveStoryWorker),
  ('/', frontPage),
  (r'.*', storyViewer)
]

application = webapp.WSGIApplication(routes, debug=True)

def main():
  run_wsgi_app(application)

if __name__ == "__main__":
  main()