Skip to content

Instantly share code, notes, and snippets.

@mansha99
Created July 4, 2023 17:40
Show Gist options
  • Save mansha99/c5ca9434838eda7b2c945dd812969e2c to your computer and use it in GitHub Desktop.
Save mansha99/c5ca9434838eda7b2c945dd812969e2c to your computer and use it in GitHub Desktop.
notice_app/notices/urls.py
from django.urls import path
from .views import user
from .views import notices
from rest_framework_simplejwt import views as jwt_views
urlpatterns = [
path('register', user.createAccount, name='createAccount'),
path('login/', jwt_views.TokenObtainPairView.as_view(), name='token_obtain_pair'),
path('token/refresh/', jwt_views.TokenRefreshView.as_view(), name='token_refresh'),
path('listAllNotices', notices.listAllNotices, name='listAllNotices'),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment