Add IdToken router
This commit is contained in:
parent
e33d74308a
commit
e5ae0bd58e
6 changed files with 115 additions and 9 deletions
|
@ -1,11 +1,13 @@
|
|||
from fastapi import FastAPI
|
||||
from fastapi import FastAPI, Request
|
||||
from fastapi.exceptions import RequestValidationError
|
||||
from fastapi.responses import JSONResponse
|
||||
from starlette.middleware.authentication import AuthenticationMiddleware
|
||||
import uvicorn
|
||||
|
||||
from app.database import engine, Base
|
||||
from app.models import *
|
||||
|
||||
from app.routers import chargepoint_v1, user_v1, ocpp_v1
|
||||
from app.routers import chargepoint_v1, id_token_v1, ocpp_v1, user_v1
|
||||
from app.util.websocket_auth_backend import BasicAuthBackend
|
||||
|
||||
Base.metadata.create_all(bind=engine)
|
||||
|
@ -25,6 +27,7 @@ def create_app():
|
|||
)
|
||||
|
||||
app.include_router(chargepoint_v1.router, prefix="/v1")
|
||||
app.include_router(id_token_v1.router, prefix="/v1")
|
||||
app.include_router(user_v1.router, prefix="/v1")
|
||||
app.mount(path="/v1/ocpp", app=create_ocpp_app())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue