Replaces LICENSE (GPLv3 -> AGPLv3) and prepends `SPDX-License-Identifier: AGPL-3.0-or-later` to every source file across decnet/, decnet_web/, tests/, scripts/, and tools/. Rationale: closes the GPLv3 ASP loophole so any party operating a modified DECNET as a network service must offer their modified source. Personal copyright (Samuel Paschuan) + inbound=outbound contributions make a future unilateral relicense infeasible. - LICENSE: full AGPL-3.0 text (gnu.org/licenses/agpl-3.0.txt) - COPYRIGHT: project copyright notice - tools/add_spdx_headers.py: idempotent header injector (shebang- and PEP 263-aware) Touches 1565 source files (.py, .ts, .tsx, .js, .jsx, .css, .sh). No behavior change; comments only.
35 lines
1.2 KiB
Python
35 lines
1.2 KiB
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
"""Cross-cutting decky operation endpoints.
|
|
|
|
These routes apply to both fleet and MazeNET (topology) deckies; the
|
|
MazeNET case is selected by passing ``topology_id`` in the request body.
|
|
|
|
Compare with:
|
|
|
|
* :mod:`decnet.web.router.fleet` — fleet-only CRUD (deploy, mutate,
|
|
list).
|
|
* :mod:`decnet.web.router.topology` — topology-only CRUD.
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from .api_file_drop import router as file_drop_router
|
|
from .api_services import (
|
|
fleet_services_router,
|
|
topology_services_router,
|
|
)
|
|
from .api_tarpit import router as tarpit_router
|
|
|
|
deckies_router = APIRouter()
|
|
deckies_router.include_router(file_drop_router)
|
|
deckies_router.include_router(fleet_services_router)
|
|
# Topology service routes live under /topologies/{id}/... — the prefix
|
|
# is set on the router itself. Mounted under the same `deckies_router`
|
|
# umbrella because the *operation* (add/remove a service on a deployed
|
|
# decky) is identical; only the addressing scheme differs.
|
|
deckies_router.include_router(topology_services_router)
|
|
deckies_router.include_router(tarpit_router)
|
|
|
|
__all__ = ["deckies_router"]
|