feat: ping endpoint
Some checks failed
TrafficCue Server CI / check (push) Failing after 52s
TrafficCue Server CD / build (push) Has been cancelled

This commit is contained in:
2025-09-27 19:46:28 +02:00
parent 9940a86ac0
commit 4d8c3aef68

View File

@ -70,6 +70,10 @@ app.get("/api/config", (c) => {
}); });
}); });
app.get("/api/ping", (c) => {
return c.json({ pong: true });
});
app.post("/api/user", async (c) => { app.post("/api/user", async (c) => {
const { token } = await c.req.json(); const { token } = await c.req.json();
if (!token) { if (!token) {