mirror of
https://github.com/SrIzan10/featherbin.git
synced 2026-06-06 00:56:49 +00:00
tf
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user