backend #5
@ -1,3 +1,7 @@
|
||||
"""
|
||||
@author: p.dolata
|
||||
"""
|
||||
|
||||
from rest_framework import status
|
||||
from rest_framework.generics import RetrieveAPIView, CreateAPIView
|
||||
from rest_framework.permissions import AllowAny
|
||||
|
11
rest-app/smartpicasso/app/user_profile/urls.py
Normal file
11
rest-app/smartpicasso/app/user_profile/urls.py
Normal file
@ -0,0 +1,11 @@
|
||||
"""
|
||||
@author: p.dolata
|
||||
"""
|
||||
|
||||
from django.conf.urls import url
|
||||
|
||||
from smartpicasso.app.user_profile.views import UserProfileView
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^profile', UserProfileView.as_view(), name='profile')
|
||||
]
|
@ -1,3 +1,7 @@
|
||||
"""
|
||||
@author: p.dolata
|
||||
"""
|
||||
|
||||
from rest_framework import status
|
||||
from rest_framework.generics import RetrieveAPIView
|
||||
from rest_framework.permissions import IsAuthenticated
|
||||
|
@ -18,5 +18,6 @@ from django.urls import path, include
|
||||
|
||||
urlpatterns = [
|
||||
path('api/', include('smartpicasso.app.user.urls')),
|
||||
path('api/', include('smartpicasso.app.user_profile.urls')),
|
||||
path('admin/', admin.site.urls),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user