django-stars / backend-skeleton

108 stars 41 forks source link

Add ViewResolver #25

Open glibpushkov opened 4 years ago

glibpushkov commented 4 years ago

ViewResolver is a thing which migrates from project to project and makes the following

    urlpatterns = [
        'articles/',
            ViewResolver.as_view(
                get=ArticleListAPIView.as_view(),
                post=ArticleCreateAPIView.as_view(),
            ),
        ),
    ]