websync / pages /api /wipe.ts
Shivam
Initial commit: Web-SyncPlay moved into Streamer
d092f57
import { NextApiRequest, NextApiResponse } from "next"
import { wipeCache } from "../../lib/cache"
export default async function generate(
_: NextApiRequest,
res: NextApiResponse
) {
if (process.env.NODE_ENV === "production") {
return res.status(403).end()
}
await wipeCache()
res.send("Ok")
}