Skip to content

Commit

Permalink
feat: replace DRF router to Ninja-based routers
Browse files Browse the repository at this point in the history
  • Loading branch information
TGoddessana committed Mar 24, 2024
1 parent e254582 commit 77fedd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
13 changes: 0 additions & 13 deletions config/api_router.py

This file was deleted.

8 changes: 8 additions & 0 deletions config/ninja_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from ninja import NinjaAPI

from cookiecutter_django_ninja_example.users.api.views import users_router

# Overrides to maintain consistency with the DRF url namespace in cookiecutter-django.
api = NinjaAPI(urls_namespace="api")

api.add_router("/users/", users_router)

0 comments on commit 77fedd7

Please sign in to comment.