"""Defines application routes""" import oz from .handlers.ping import * from .handlers.similar_terms import * from .handlers.parse import * oz.routes( (r'^/ping$', PingHandler), (r'^/terms$', SimilarTermsHandler), (r'^/parse$', KNPParseHandler) # Format: (<path>, <handler>, [dict(<request handler kwargs>)]) # e.g.: (r"^/hello/(\w+)$", handlers.GreetingHandler) )
"""Defines application routes""" import oz oz.routes( # Format: (<path>, <handler>, [dict(<request handler kwargs>)]) # e.g.: (r"^/hello/(\w+)$", handlers.GreetingHandler) )
"""Defines application routes""" import oz from bootstrap.handlers import home oz.routes( # Format: (<path>, <handler>, [dict(<request handler kwargs>)]) # e.g.: (r"^/hello/(\w+)$", handlers.GreetingHandler) (r"^/$", home.HomeHandler), (r"^(.+)$", home.NotFoundHandler), )
"""Defines application routes""" import oz from . import handlers oz.routes( (r"^/file/([^/]+)$", handlers.FileHandler), (r"^/copy-file/([^/]+)/([^/]+)$", handlers.FileCopyingHandler), (r"^/cache-buster/([^/]+)$", handlers.CacheBusterHandler), (r"^/experiment/(\w+)$", handlers.ExperimentHandler), (r"^/blink$", handlers.BlinkHandler), (r"^/api/echo$", handlers.EchoApiHandler), (r"^/api/error/normal$", handlers.NormalErrorApiHandler), (r"^/api/error/unexpected$", handlers.UnexpectedErrorApiHandler), (r"^/db/(.+)", handlers.DatabaseHandler), (r"^/session$", handlers.SessionHandler), (r"^/session/(.+)", handlers.SessionValueHandler), )