managarten/apps/uload/apps/server/src/routes/stripe.ts
Till JS 3686926a8e refactor(uload): clean up migration, add Stripe/Email stubs, fix 497 type errors
- Delete non-MVP pages (cards, templates, teams, workspaces, public profiles)
- Delete old PocketBase components, stores, services, utils
- Simplify settings, pricing, analytics pages
- Rewrite reset-password, verify-email pages
- Add Stripe checkout/webhook and email stub routes to Hono server
- Add uload to shared-branding (app icon, mana-apps registry)
- Simplify svelte.config.js, vite.config.ts, theme store
- 501 type errors → 4 (vite.config Tailwind v4 compat only)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 14:14:17 +02:00

14 lines
465 B
TypeScript

import { Hono } from 'hono';
import type { AuthUser } from '../middleware/jwt-auth';
export function createStripeRoutes() {
return new Hono<{ Variables: { user: AuthUser } }>()
.post('/checkout', async (c) => {
// TODO: Implement Stripe checkout session creation
return c.json({ error: 'Stripe not configured yet' }, 501);
})
.post('/webhook', async (c) => {
// TODO: Implement Stripe webhook handling
return c.json({ received: true });
});
}