From c2e55879671b918c15d0130eb26722600c26bf29 Mon Sep 17 00:00:00 2001 From: Ali Date: Sat, 21 Feb 2026 19:10:17 +0900 Subject: [PATCH] dburl geaendert --- src/routes/authRoutes.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/routes/authRoutes.js b/src/routes/authRoutes.js index 670e2e3..0418086 100644 --- a/src/routes/authRoutes.js +++ b/src/routes/authRoutes.js @@ -25,15 +25,6 @@ router.post('/register', async (req, res) => { } ) - // now that we have a user, I want to add their first todo for them - const defaultTodo = `Hello :) Add your first todo!` - await prisma.todo.create({ - data:{ - task: defaultTodo, - userId: user.id - } - }) - // create a token const token = jwt.sign({ id: user.id }, process.env.JWT_SECRET, { expiresIn: '24h' }) res.json({ token })