aboutsummaryrefslogtreecommitdiffstats
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--server.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/server.js b/server.js
index 85d9ba4..a663c83 100644
--- a/server.js
+++ b/server.js
@@ -5,9 +5,15 @@ const app = express();
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
app.use(session({
- secret: 'your-secret',
+ secret: 'change-this-secret',
resave: false,
saveUninitialized: false
}));
-app.listen(3000, () => console.log('running on :3000'));
+const authRoutes = require('./routes/auth');
+const taskRoutes = require('./routes/tasks');
+
+app.use('/auth', authRoutes);
+app.use('/tasks', taskRoutes);
+
+app.listen(3000, () => console.log('running on http://localhost:3000'));