diff --git a/server/bun.lockb b/server/bun.lockb index 766be32..f42c1c3 100755 Binary files a/server/bun.lockb and b/server/bun.lockb differ diff --git a/server/package.json b/server/package.json index 4019037..5db8e7e 100644 --- a/server/package.json +++ b/server/package.json @@ -3,9 +3,11 @@ "dev": "bun run --hot src/index.ts" }, "dependencies": { + "@hono/zod-validator": "^0.1.11", "hono": "^4.0.3", "mariadb": "^3.2.3", - "podcast": "^2.0.1" + "podcast": "^2.0.1", + "zod": "^3.22.4" }, "devDependencies": { "@types/bun": "latest" diff --git a/server/src/middleware/form-to-json.ts b/server/src/middleware/form-to-json.ts deleted file mode 100644 index 5750da0..0000000 --- a/server/src/middleware/form-to-json.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Context } from 'hono'; - -export default async function parsedForm(c: Context, next) { - if (c.req.method == 'POST') { - if (c.req.header('Content-Type') === 'application/x-www-form-urlencoded') { - - } - } - - next(); -} diff --git a/server/src/routes/user.ts b/server/src/routes/user.ts index 4b18856..c75a5c4 100644 --- a/server/src/routes/user.ts +++ b/server/src/routes/user.ts @@ -35,14 +35,4 @@ app.post('/register', async (c: Context) => { } }); -app.post('/login', async (c: Context) => { - - return c.json({ "success": true }); -}); - -app.post('/create/channel', async (c: Context) => { - - return c.json({ "success": true }); -}); - export default app;