This commit is contained in:
2024-04-21 20:47:15 +02:00
parent e0de6ec342
commit f250c900d8

View File

@@ -25,7 +25,7 @@ app.post('/paste', async (c) => {
return c.text('no content provided', 400)
}
await c.env.featherbin.put(id, content)
return c.json({ id })
return c.text(id)
})
app.get('/paste', async (c) => {
@@ -35,7 +35,7 @@ app.get('/paste', async (c) => {
return c.text('no content provided', 400)
}
await c.env.featherbin.put(id, content)
return c.json({ id })
return c.text(id)
})
app.get('/:id', async (c) => {