-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Davide Arcuri
committed
Apr 4, 2024
1 parent
fdc3f50
commit 47caca8
Showing
29 changed files
with
660 additions
and
889 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from ninja import NinjaAPI | ||
|
||
from orochi.api.routers.auth import router as auth_router | ||
from orochi.api.routers.dumps import router as dumps_router | ||
from orochi.api.routers.folders import router as folders_router | ||
from orochi.api.routers.plugins import router as plugins_router | ||
from orochi.api.routers.users import router as users_router | ||
from orochi.api.routers.utils import router as utils_router | ||
|
||
api = NinjaAPI(csrf=True, title="Orochi API", urls_namespace="api") | ||
api.add_router("/auth/", auth_router, tags=["Auth"]) | ||
api.add_router("/users/", users_router, tags=["Users"]) | ||
api.add_router("/folders/", folders_router, tags=["Folders"]) | ||
api.add_router("/dumps/", dumps_router, tags=["Dumps"]) | ||
api.add_router("/plugins/", plugins_router, tags=["Plugins"]) | ||
api.add_router("/utils/", utils_router, tags=["Utils"]) |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from enum import Enum | ||
|
||
from ninja import Schema | ||
|
||
|
||
class OPERATING_SYSTEM(str, Enum): | ||
WINDOWS = "Windows" | ||
LINUX = "Linux" | ||
MAC = "Mac" | ||
OTHER = "Other" | ||
|
||
|
||
class OperatingSytemFilters(Schema): | ||
operating_system: OPERATING_SYSTEM = None | ||
|
||
|
||
class DumpFilters(Schema): | ||
result: int = None |
Oops, something went wrong.