Skip to content

Enhance categories, languages, and admin features - #157

Merged
Flash303 merged 12 commits into
devfrom
feat/categorie-languages
Nov 14, 2026
Merged

Flash303 merged 12 commits into
devfrom
feat/categorie-languages

Conversation

@Flash303

Copy link
Copy Markdown
Owner

This pull request introduces support for categorizing Minecraft servers by type and language, adds missing category and language values, and implements an admin API key for privileged admin routes. It updates the database schema, models, repository, and REST API to handle server categories and languages, and enhances admin route security and error handling.

Database schema and model enhancements:

  • Added new PostgreSQL enum types server_category and server_language, and updated the servers table to include categories and languages array columns. Also added migrations to support additional categories and languages, including community-requested and missing values. [1] [2] [3] [4]
  • Updated Rust models (Server, ServerRow, DraftServer) and enums (ServerCategory, ServerLanguage) to reflect new schema, including serialization and deserialization support. [1] [2] [3] [4] [5]

Repository and API changes:

  • Modified repository trait and implementation to support updating server details (name, categories, languages) and to fetch/store these new fields. [1] [2] [3] [4] [5] [6]
  • Updated admin server routes and API types to handle new fields and bulk update operations. [1] [2]

Admin API key and security:

  • Added ADMIN_API_KEY to .env.example files and backend configuration, allowing admin routes to be accessed via a long-lived API key (either in x-admin-key header or as a Bearer token), in addition to Clerk admin JWTs. [1] [2] [3] [4] [5]

Error handling improvements:

  • Introduced a new BadRequest variant to AppError for more precise error reporting and HTTP status code mapping. [1] [2] [3]

@Flash303
Flash303 merged commit 2de34a4 into dev Nov 14, 2026
4 checks passed
@Flash303
Flash303 deleted the feat/categorie-languages branch November 14, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant