Skip to content

Commit

Permalink
add router to allow for logout
Browse files Browse the repository at this point in the history
  • Loading branch information
devincowan committed Nov 15, 2023
1 parent 0c33fd2 commit 2c89d67
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/api/subsetter/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@
tags=["auth"],
)

# This router provides the /auth/cookie/logout endpoint
app.include_router(
fastapi_users.get_auth_router(cookie_backend),
prefix="/auth/cookie",
tags=["auth"]
)

app.include_router(
fastapi_users.get_users_router(UserRead, UserUpdate),
prefix="/users",
Expand Down

0 comments on commit 2c89d67

Please sign in to comment.