-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(structure): modular, streaming enabled with django eventstre…
…am, api change, runserver
- Loading branch information
1 parent
adbbcbd
commit 48fad5c
Showing
46 changed files
with
1,166 additions
and
1,044 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
import logging | ||
|
||
from django.apps import apps | ||
from kitchenai.core.api import router as core_router | ||
from ninja import NinjaAPI | ||
from kitchenai.core.router import router as core_router | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
api = NinjaAPI(version="0.9.0") | ||
api = NinjaAPI(version="0.10.0") | ||
|
||
|
||
# Ensure `ready()` is called for all apps | ||
apps.get_app_configs() | ||
|
||
# Get the app's router from `MyAppConfig` and add it to the main API | ||
api.add_router("/core", core_router) # Add app's router here | ||
api.add_router("/v1", core_router) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.