mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
16 lines
604 B
Python
16 lines
604 B
Python
from django.urls import include, path
|
|
from .views import StudyGroupListView, StudyGroupListNearView, StudyGroupCreateView, StudyGroupDetailView, StudyGroupAvatarsView
|
|
from rest_framework import routers
|
|
|
|
router = routers.DefaultRouter()
|
|
router.register(r'create', StudyGroupCreateView,
|
|
basename='Create Study Group')
|
|
|
|
urlpatterns = [
|
|
|
|
path('', StudyGroupListView.as_view()),
|
|
path('', include(router.urls)),
|
|
path('near/', StudyGroupListNearView.as_view()),
|
|
path('member_avatars/', StudyGroupAvatarsView.as_view()),
|
|
path('<str:name>/', StudyGroupDetailView.as_view()),
|
|
]
|