-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
422 additions
and
233 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
from fastapi import FastAPI | ||
import uvicorn | ||
from fastapi import FastAPI | ||
|
||
from API import route | ||
|
||
Fastapp = FastAPI() | ||
# API Router | ||
Fastapp.include_router(route.router) | ||
|
||
|
||
@Fastapp.get("/") | ||
def read_root(): | ||
return {"Hello": "FASTAPI"} | ||
|
||
#function to run server of FastAPI | ||
|
||
# function to run server of FastAPI | ||
def run_fastapi_app(): | ||
uvicorn.run(Fastapp, host="127.0.0.1", port=8000) |
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
Oops, something went wrong.