feat(28-01): add account management routes for password, email, and deletion
Creates /api/account routes with password change (verifies current first), email update, has-password check, and account deletion with public setup anonymization. Adds Zod validation schemas and registers routes in index. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,7 @@ import { seedDefaults } from "../db/seed.ts";
|
||||
import { mcpRoutes } from "./mcp/index.ts";
|
||||
import { requireAuth } from "./middleware/auth.ts";
|
||||
import { createRateLimit } from "./middleware/rateLimit.ts";
|
||||
import { accountRoutes } from "./routes/account.ts";
|
||||
import { authRoutes } from "./routes/auth.ts";
|
||||
import { categoryRoutes } from "./routes/categories.ts";
|
||||
import { discoveryRoutes } from "./routes/discovery.ts";
|
||||
@@ -178,6 +179,7 @@ app.use("/api/*", async (c, next) => {
|
||||
});
|
||||
|
||||
// API routes
|
||||
app.route("/api/account", accountRoutes);
|
||||
app.route("/api/auth", authRoutes);
|
||||
app.route("/api/items", itemRoutes);
|
||||
app.route("/api/categories", categoryRoutes);
|
||||
|
||||
Reference in New Issue
Block a user