Move api to /api/v1
This includes docs, which are now at http://127.0.0.1:8000/api/v1/docs and the openapi.json, now at http://127.0.0.1:8000/api/v1/openapi.json Fixes #4
This commit is contained in:
@@ -36,7 +36,11 @@ async def lifespan(app: FastAPI):
|
||||
yield
|
||||
#scanner.stop()
|
||||
|
||||
app = FastAPI(lifespan=lifespan)
|
||||
app = FastAPI(
|
||||
lifespan=lifespan,
|
||||
docs_url="/api/v1/docs",
|
||||
openapi_url="/api/v1/openapi.json"
|
||||
)
|
||||
|
||||
origins = [
|
||||
"http://127.0.0.1",
|
||||
|
||||
Reference in New Issue
Block a user