add users work

This commit is contained in:
2023-10-13 22:18:41 +02:00
parent 680634aeee
commit 9184d13391
3 changed files with 14 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ app.include_router(token.router)
@app.on_event("startup")
async def startup_event():
user_add.add(username="Peter93", password="toto", roles="Admin")
user_add.add(username="Robert80", password="titi", roles="User")
@app.get("/")
async def root():