fix(admin-service): exclude /downloads from API prefix

Downloads route was getting /api/v1 prefix, making it inaccessible at /downloads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-09 07:44:53 -08:00
parent 4b4b09f046
commit 2ed1658c16
1 changed files with 2 additions and 1 deletions

View File

@ -7,11 +7,12 @@ async function bootstrap() {
const logger = new Logger('Bootstrap')
const app = await NestFactory.create(AppModule)
// Global prefix (exclude mobile API routes that need custom paths)
// Global prefix (exclude mobile API routes and downloads that need custom paths)
app.setGlobalPrefix('api/v1', {
exclude: [
{ path: 'api/app/version/(.*)', method: RequestMethod.ALL },
{ path: 'api/app/version/check', method: RequestMethod.GET },
{ path: 'downloads/(.*)', method: RequestMethod.GET },
],
})