Add user router
This commit is contained in:
parent
b22bc4e164
commit
e33d74308a
5 changed files with 93 additions and 13 deletions
|
@ -5,7 +5,7 @@ import uvicorn
|
|||
from app.database import engine, Base
|
||||
from app.models import *
|
||||
|
||||
from app.routers import chargepoint_v1, ocpp_v1
|
||||
from app.routers import chargepoint_v1, user_v1, ocpp_v1
|
||||
from app.util.websocket_auth_backend import BasicAuthBackend
|
||||
|
||||
Base.metadata.create_all(bind=engine)
|
||||
|
@ -25,6 +25,7 @@ def create_app():
|
|||
)
|
||||
|
||||
app.include_router(chargepoint_v1.router, prefix="/v1")
|
||||
app.include_router(user_v1.router, prefix="/v1")
|
||||
app.mount(path="/v1/ocpp", app=create_ocpp_app())
|
||||
|
||||
return app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue