urls.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:pathways-backend 作者: pg-irc 项目源码 文件源码
def build_router():
    router = routers.DefaultRouter()
    router.register(r'organizations', OrganizationViewSet, base_name='organization')
    router.register(r'organizations/(?P<organization_id>[0-9a-zA-Z_]+)/locations', LocationViewSetUnderOrganizations, base_name='organization-location')
    router.register(r'locations', LocationViewSet, base_name='location')
    router.register(r'search', SearchViewSet, base_name='search')
    return router
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号