File size: 452 Bytes
6e755f8
c4d1e86
6e755f8
 
 
 
 
c4d1e86
 
6e755f8
 
 
 
 
 
 
 
 
 
 
 
 
c4d1e86
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from fastapi import FastAPI
from routers import test_router, testdb_router, user_router
import uvicorn

app = FastAPI()

app.include_router(test_router.router)
app.include_router(testdb_router.router)
app.include_router(user_router.router)


@app.get("/")
def home():
    return {"message": "FastAPI 실행 성공"}


if __name__ == "__main__":
    uvicorn.run(
        "app:app",
        host="127.0.0.1",
        port=8000,
        reload=True
    )