-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
35 lines (29 loc) · 797 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
import uvicorn
from fastapi import FastAPI
from routers import users
from routers import posts
from routers import groups
from routers import comments
from routers import auth
app = FastAPI(
title="Cultribe API",
description="Cultribe swagger documentation",
version="0.0.1",
swagger_ui_parameters={
"defaultModelsExpandDepth": -1
}
)
app.include_router(users.router, prefix="/api")
app.include_router(posts.router, prefix="/api")
app.include_router(groups.router, prefix="/api")
app.include_router(comments.router, prefix="/api")
app.include_router(auth.router, prefix="/api")
if __name__ == "__main__":
uvicorn.run(
"main:app",
host="0.0.0.0",
port=8000,
log_level="debug",
access_log=True,
reload=True
)