feat: add vehicle selection and downgrade flow - M5 (refs #55)
This commit is contained in:
@@ -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)
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user