Add "OPTIONS" handling for more restful responses

This commit is contained in:
jar3b
2016-09-21 17:19:45 +03:00
parent 2f5df29d0a
commit afd61dae19
4 changed files with 45 additions and 60 deletions

View File

@@ -8,11 +8,12 @@ try:
except ImportError:
assert "No config"
# Define main app
phias_app = phias.App(config.BasicConfig.logfile)
# Create main app
phias.App(config.BasicConfig.logfile)
# Define wsgi app
application = phias_app.get_app()
application = phias.app
# Run bottle WSGI server if no external
if __name__ == '__main__':
phias_app.start(host='0.0.0.0', port=8087, debug=True)
application.run(host='0.0.0.0', port=8087, debug=True)