Quality / test (push) Canceled after 0s
Add public category lookup options, allowlisted sort ordering, URL-backed catalog controls, and strict search route validation with regression tests.
7 lines
234 B
JavaScript
7 lines
234 B
JavaScript
export async function registerPublicLookupRoutes(app, options) {
|
|
const { catalogLookupRepository } = options;
|
|
|
|
app.get('/public/lookups/categories', async () => ({
|
|
data: await catalogLookupRepository.listCategories(),
|
|
}));
|
|
} |