Initial commit
This commit is contained in:
20
main.py
Normal file
20
main.py
Normal file
@ -0,0 +1,20 @@
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
from app.routers import auth
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"],
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"]
|
||||
)
|
||||
|
||||
|
||||
@app.get("/")
|
||||
async def index() -> str:
|
||||
return "Version 0.0.1"
|
||||
|
||||
app.include_router(auth.router)
|
||||
Reference in New Issue
Block a user