feat: register settings route and navigation

This commit is contained in:
Ricardo
2026-03-31 21:44:00 +02:00
parent 2f7e6b238b
commit 1797c4dbcf
2 changed files with 16 additions and 0 deletions
+13
View File
@@ -131,6 +131,10 @@ import {
broadcastActorUpdateController,
lookupObjectController,
} from "./lib/controllers/federation-mgmt.js";
import {
settingsGetController,
settingsPostController,
} from "./lib/controllers/settings.js";
const defaults = {
mountPath: "/activitypub",
@@ -206,6 +210,11 @@ export default class ActivityPubEndpoint {
text: "activitypub.federationMgmt.title",
requiresDatabase: true,
},
{
href: `${this.options.mountPath}/admin/settings`,
text: "activitypub.settings.title",
requiresDatabase: true,
},
];
}
@@ -378,6 +387,10 @@ export default class ActivityPubEndpoint {
router.post("/admin/federation/broadcast-actor", broadcastActorUpdateController(mp, this));
router.get("/admin/federation/lookup", lookupObjectController(mp, this));
// Settings
router.get("/admin/settings", settingsGetController(mp));
router.post("/admin/settings", settingsPostController(mp));
return router;
}
+3
View File
@@ -333,6 +333,9 @@
"deleteSuccess": "Delete activity sent to followers",
"deleteButton": "Delete from fediverse"
},
"settings": {
"title": "Settings"
},
"federationMgmt": {
"title": "Federation",
"collections": "Collection health",