feat: add vehicle selection and downgrade flow - M5 (refs #55)

This commit is contained in:
Eric Gullickson
2026-01-18 16:44:45 -06:00
parent 94d1c677bc
commit 6c1a100eb9
11 changed files with 509 additions and 7 deletions

View File

@@ -48,4 +48,10 @@ export const subscriptionsRoutes: FastifyPluginAsync = async (
preHandler: [fastify.authenticate],
handler: subscriptionsController.getInvoices.bind(subscriptionsController)
});
// POST /api/subscriptions/downgrade - Downgrade subscription with vehicle selection
fastify.post('/subscriptions/downgrade', {
preHandler: [fastify.authenticate],
handler: subscriptionsController.downgrade.bind(subscriptionsController)
});
};