|
@@ -19,7 +19,7 @@ from django.urls import include, path
|
|
|
|
|
|
from rest_framework import routers
|
|
|
|
|
|
-from userprofile.views import (user_list, user_details, log_or_create)
|
|
|
+from userprofile.views import (user_list, user_details, log_or_create, change_username)
|
|
|
|
|
|
router = routers.DefaultRouter()
|
|
|
|
|
@@ -33,4 +33,5 @@ urlpatterns = [
|
|
|
path('userlist/', user_list, name='user-list'),
|
|
|
#path('userdetails/<int:pk>', user_details, name='user-details'),
|
|
|
path('userdetails/<str:wallet>', log_or_create, name='user-details'),
|
|
|
+ path('changeusername/<str:wallet>/<str:nickname>', change_username, name="change_username")
|
|
|
]
|