-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
29 lines (25 loc) · 915 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from flask import Flask
from endpoints import post_login
from endpoints import post_register
from endpoints.events import delete_event
from endpoints.events import get_event
from endpoints.events import get_events
from endpoints.users import get_user
from endpoints.users import get_users
from endpoints.events import patch_event
import endpoints.post_event as post_event
app = Flask(__name__)
@app.route("/", methods=["GET"])
def hello_world():
return {
"message": "Hello world!"
}, 200
app.register_blueprint(post_login.blueprint)
app.register_blueprint(post_register.blueprint)
app.register_blueprint(delete_event.blueprint)
app.register_blueprint(get_event.blueprint)
app.register_blueprint(get_events.blueprint)
app.register_blueprint(post_event.blueprint)
app.register_blueprint(get_user.blueprint)
app.register_blueprint(get_users.blueprint)
app.register_blueprint(patch_event.blueprint)