Created
December 30, 2021 16:40
-
-
Save kaustubhgupta/2fa52012d46d72955b575c0c6266b639 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI | |
from book import bookroute | |
from novel import novelroute | |
import uvicorn | |
app = FastAPI() | |
app.include_router(bookroute, prefix="/book") | |
app.include_router(novelroute, prefix="/novel") | |
@app.get('/') | |
def index(): | |
return "Hello" | |
if __name__ == "__main__": | |
uvicorn.run("demo:app", host='127.0.0.1', port=8000, reload=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment