mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-21 22:46:41 +02:00
- 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>
14 lines
465 B
TypeScript
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 });
|
|
});
|
|
}
|