Files
pokemon-inventory/apps/api/src/modules/inventory/routes/public-lookup-routes.js
T
fragginwagon f4e4685ecc
Quality / test (push) Canceled after 0s
feat: add public search controls
Add public category lookup options, allowlisted sort ordering, URL-backed catalog controls, and strict search route validation with regression tests.
2026-09-09 01:44:28 -04:00

7 lines
234 B
JavaScript

export async function registerPublicLookupRoutes(app, options) {
const { catalogLookupRepository } = options;
app.get('/public/lookups/categories', async () => ({
data: await catalogLookupRepository.listCategories(),
}));
}