feat: add admin pricing workflow
Quality / test (push) Canceled after 0s

Add the admin pricing observation and valuation form, secure valuation writes with CSRF, and extend authenticated browser coverage.
This commit is contained in:
2026-09-09 01:15:30 -04:00
parent 721b590a89
commit ba88814af0
5 changed files with 71 additions and 1 deletions
@@ -36,6 +36,7 @@ export async function registerAdminPricingRoutes(app, options) {
});
app.post('/inventory/:id/valuation', async (request, reply) => {
await authorizeUnsafeRequest?.(request.cookies[sessionCookieName], request.headers['x-csrf-token']);
const valuation = await pricingService.calculate({ sellerId: request.admin.sellerId, inventoryItemId: request.params.id });
return reply.code(200).send({ data: toAdminMarketValuationDto(valuation) });
});