-
-
Save developer-rakeshpaul/a7e7108f5d08fad56371e152e9d15a72 to your computer and use it in GitHub Desktop.
Revisions
-
kacieh80 revised this gist
Dec 24, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,6 @@ wsgi_app = falcon.API(after=[db_session.remove_session]) autoload("{0}/{1}".format(os.path.dirname(__file__), "handlers")) add_routes(wsgi_app) wsgi_app.add_error_handler(Exception, build_error_response) -
kacieh80 created this gist
Dec 24, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ import falcon import os from app.db import db_session from app.utils.exceptions import build_error_response from app.startup import (autoload, add_routes) wsgi_app = falcon.API(after=[db_session.remove_session]) autoload("{0}/{1}".format(os.path.dirname(__file__), "/handlers")) add_routes(wsgi_app) wsgi_app.add_error_handler(Exception, build_error_response)