Skip to content

Commit

Permalink
fix: logout view
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Sep 19, 2023
1 parent b9b351d commit 57d4821
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions codeforlife/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.contrib import admin
from django.contrib.auth.views import LogoutView
from django.http import HttpResponse
from django.shortcuts import render
from django.urls import include, path, re_path
Expand All @@ -23,6 +24,11 @@ def service_urlpatterns(
csrf.CookieView.as_view(),
name="get-csrf-cookie",
),
path(
"api/session/logout/",
LogoutView.as_view(),
name="logout",
),
path(
"api/",
include(api_urls_path),
Expand Down

0 comments on commit 57d4821

Please sign in to comment.