Skip to content

Commit

Permalink
feat: allow set scope token
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Jan 12, 2024
1 parent a480fa3 commit 6e4ed93
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/api/controllers/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@ export function route(hono: THono) {
);
});

hono.put('/configuration/:id', async (c) => {
hono.post('/configuration', async (c) => {
const body = await c.req.json();
const id = c.req.param('id');
const id = c.req.query('id');
if (!id) {
return c.send.error(404, 'page not found');
}

const token = body['token'];
const kv = new CommonKVManager();
Expand Down

0 comments on commit 6e4ed93

Please sign in to comment.