forked from danger-ahead/regalia-2022-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
41 lines (33 loc) · 768 Bytes
/
main.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
30
31
32
33
34
35
36
37
38
39
40
41
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from routes import (
team,
regalia_pass,
scan,
home,
search,
verify,
guest,
participant,
unpaid_pass,
)
app = FastAPI()
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
app.include_router(team.route)
app.include_router(regalia_pass.route)
app.include_router(scan.route)
app.include_router(home.route)
app.include_router(verify.route)
app.include_router(search.route)
app.include_router(guest.route)
app.include_router(participant.route)
app.include_router(unpaid_pass.route)
@app.get("/")
def root():
return {"message": "Welcome to Regalia'22"}