Created
July 4, 2023 17:40
-
-
Save mansha99/c5ca9434838eda7b2c945dd812969e2c to your computer and use it in GitHub Desktop.
notice_app/notices/urls.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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