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 characters
| import falcon | |
| import mimetypes | |
| import os.path | |
| from falcon.request import Request | |
| from falcon.response import Response | |
| # simple static file handler for falcon | |
| # it is recommended to use a program like nginx to handle static files | |
| # however this is useful for development and when performance is not a priority |