Skip to content

Commit

Permalink
add server bin
Browse files Browse the repository at this point in the history
  • Loading branch information
voschezang committed Jul 5, 2023
1 parent b682f63 commit fd926eb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/examples/server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/python3
from flask_cors import CORS

if __name__ == '__main__':
import _extend_path

from mash.server import init

if __name__ == "__main__":
app = init()
cors = CORS(app)
app.config['CORS_HEADERS'] = 'Content-Type'
app.run(debug=True)

0 comments on commit fd926eb

Please sign in to comment.