initial commit
This commit is contained in:
19
main.py
Normal file
19
main.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from flask import Flask
|
||||
from flask_cors import CORS
|
||||
from api.child_api import child_api
|
||||
from api.reward_api import reward_api
|
||||
from api.task_api import task_api
|
||||
from api.image_api import image_api
|
||||
|
||||
app = Flask(__name__)
|
||||
#CORS(app, resources={r"/api/*": {"origins": ["http://localhost:3000", "http://localhost:5173"]}})
|
||||
app.register_blueprint(child_api)
|
||||
app.register_blueprint(reward_api)
|
||||
app.register_blueprint(task_api)
|
||||
app.register_blueprint(image_api)
|
||||
CORS(app)
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=False, host='0.0.0.0', port=5000)
|
||||
Reference in New Issue
Block a user