From f250c900d86f78d56f7cbce8b995dae5db858ce7 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 21 Apr 2024 20:47:15 +0200 Subject: [PATCH] tf --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index d9c9a34..d6eb48c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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) => {