replace dev section with dev mode toggle, seed/delete mock data on toggle, bump to 2026.03.10.1
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import { Hono } from "hono"
|
||||
import { castVoteSchema } from "./schema"
|
||||
import {
|
||||
castVote,
|
||||
deleteMockLegislation,
|
||||
getLegislation,
|
||||
getLegislationResults,
|
||||
getLegislationText,
|
||||
@@ -18,6 +19,11 @@ legislationRouter.post("/seed-mock", async (c) => {
|
||||
return c.json({ ok: true, count: ids.length, ids }, 201)
|
||||
})
|
||||
|
||||
legislationRouter.delete("/seed-mock", async (c) => {
|
||||
const count = await deleteMockLegislation()
|
||||
return c.json({ ok: true, deleted: count })
|
||||
})
|
||||
|
||||
legislationRouter.get("/upcoming", async (c) => {
|
||||
const items = await getUpcomingLegislation()
|
||||
return c.json(items)
|
||||
|
||||
Reference in New Issue
Block a user