Skip to content

Commit 1bb0c0a

Browse files
committed
adjust endpoint
1 parent 26d4444 commit 1bb0c0a

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

atproto-slurper/slurper/server.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ app.get("/health", (req, res) => {
431431
});
432432
});
433433

434-
app.get("/events", async (req, res) => {
434+
app.get("/all-events", async (req, res) => {
435435
const { data, error } = await supabase
436436
.from("atproto_records")
437437
.select(
@@ -463,14 +463,6 @@ app.get("/events", async (req, res) => {
463463
res.json(formatted);
464464
}
465465
});
466-
467-
app.post("/events", async (req, res) => {
468-
const { data, error } = await supabase
469-
.from("atproto_records")
470-
.insert(req.body)
471-
.select();
472-
});
473-
474466
// New endpoint for approved events only (for calendar)
475467
app.get("/calendar-events", async (req, res) => {
476468
const { data, error } = await supabase

0 commit comments

Comments
 (0)