File size: 450 Bytes
aabae8d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Google Developer Student Clubs - FPT University Da Nang
import os
import uvicorn
from apps.create_app import create_app
# Import routers
from apps.apis import router as api_router
from apps.services import router as service_router

app = create_app()

# Register apps routes
app.include_router(api_router)
app.include_router(service_router)

# Config uvicorn
if os.environ.get("ENV", "production") == 'development':
    uvicorn.run(app, port=8000)