diff options
| author | Frederick Muriuki Muriithi | 2026-08-28 14:14:36 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-08-28 14:14:36 -0500 |
| commit | d9b8803bd808a338a72b03aa55932c8d589892d8 (patch) | |
| tree | 453da3cba282ebb739e07143e900e39898289cee /gn_auth/auth/system | |
| parent | cdf3daefaa6b7870b2f36da440c59c327ea1d62f (diff) | |
| download | gn-auth-d9b8803bd808a338a72b03aa55932c8d589892d8.tar.gz | |
Add package for administrative endpoints.
Diffstat (limited to 'gn_auth/auth/system')
| -rw-r--r-- | gn_auth/auth/system/__init__.py | 5 | ||||
| -rw-r--r-- | gn_auth/auth/system/admin/resources.py | 8 | ||||
| -rw-r--r-- | gn_auth/auth/system/admin/views.py | 8 | ||||
| -rw-r--r-- | gn_auth/auth/system/views.py | 8 |
4 files changed, 29 insertions, 0 deletions
diff --git a/gn_auth/auth/system/__init__.py b/gn_auth/auth/system/__init__.py new file mode 100644 index 0000000..5455f73 --- /dev/null +++ b/gn_auth/auth/system/__init__.py @@ -0,0 +1,5 @@ +"""This is for system-specific functionality, e.g. administration. + +This is not meant for day-to-day user activities, more for administrative tasks +to fix things. +""" diff --git a/gn_auth/auth/system/admin/resources.py b/gn_auth/auth/system/admin/resources.py new file mode 100644 index 0000000..d3a9f54 --- /dev/null +++ b/gn_auth/auth/system/admin/resources.py @@ -0,0 +1,8 @@ +"""Administrative endpoints concerning resources.""" + +from flask import Blueprint + +resources = Blueprint("resources", __name__) + + +# TODO: assign-owner and revoke-owner go here. diff --git a/gn_auth/auth/system/admin/views.py b/gn_auth/auth/system/admin/views.py new file mode 100644 index 0000000..1ea8acd --- /dev/null +++ b/gn_auth/auth/system/admin/views.py @@ -0,0 +1,8 @@ +"""Administrative endpoints.""" + +from flask import Blueprint + +from .resources import resources + +admin = Blueprint("admin", __name__) +admin.register_blueprint(resources, url_prefix="/resources") diff --git a/gn_auth/auth/system/views.py b/gn_auth/auth/system/views.py new file mode 100644 index 0000000..2cebfbc --- /dev/null +++ b/gn_auth/auth/system/views.py @@ -0,0 +1,8 @@ +"""The Blueprints for this package.""" + +from flask import Blueprint + +from .admin.views import admin + +systembp = Blueprint("sysadm", __name__) +systembp.register_blueprint(admin, url_prefix="/administration") |
