from django.urls import path
from rest_framework.routers import DefaultRouter

from .views import BlogPostViewSet, BugViewSet, FriendshipViewSet, MessageViewSet, member_search

router = DefaultRouter()
router.register('social/messages', MessageViewSet,    basename='message')
router.register('social/blog',     BlogPostViewSet,   basename='blogpost')
router.register('social/bugs',     BugViewSet,        basename='bug')
router.register('social/friends',  FriendshipViewSet, basename='friendship')

urlpatterns = [
    path('social/members/', member_search, name='member-search'),
] + router.urls
