You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c2f2606
Browse filesBrowse the repository at this point in the historyBrowse files
feat: add admin edit endpoint for server moderation
Implements PUT /v0/servers/{id} endpoint to allow admins to modify server metadata for moderation purposes. Addresses part of issue #182 by providing an API-based "escape hatch" for handling malicious servers, spam, and data corruption without requiring direct database access.
Key features:
- Resource-level edit permissions using existing PermissionActionEdit
- Added ServerStatusDeleted with anti-undelete protection
- Full CRUD operations across database, service, and API layers
- Comprehensive test coverage including edge cases
Related to: #182
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
:house: Remote-Dev: homespace
Copy file name to clipboardExpand all lines: docs/server-json/server.schema.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -66,9 +66,9 @@
66
66
},
67
67
"status": {
68
68
"type": "string",
69
-
"enum": ["active", "deprecated"],
69
+
"enum": ["active", "deprecated", "deleted"],
70
70
"default": "active",
71
-
"description": "Server lifecycle status. 'deprecated' indicates the server is no longer recommended for new usage."
71
+
"description": "Server lifecycle status. 'deprecated' indicates the server is no longer recommended for new usage. 'deleted' indicates the server should never be installed and existing installations should be uninstalled - this is rare, and usually indicates malware or a legal takedown."
0 commit comments