fix(backend): add validateparams to forums route guildid and slug
Merged
LU
5mo ago+26+26+01234567890123456789-0-0-0123456789
Summary
Added schema validation to the forum thread route to ensure malformed parameters don't reach Prisma. Follows the established validation pattern from other routes.
- Added
forumThreadSlugParamschema to management schemas - Wired
validateParamsmiddleware forguildIdandslugparameters - Added test coverage for malformed guildId validation
Closes #1525
Summary by cubic
Add parameter validation to the forum thread route to block malformed guildId (snowflake) and slug before hitting Prisma. Prevents 500s and matches validation used in other routes.
- Bug Fixes
- Added
forumThreadSlugParamto management schemas. - Applied
validateParamstoguildIdandslugon GET/api/guilds/:guildId/threads/:slug. - Added tests for malformed
guildId(400) and missingslug(404).
- Added