diff --git a/public/claude-landing.html b/public/claude-landing.html index 39a9862b..78094852 100644 --- a/public/claude-landing.html +++ b/public/claude-landing.html @@ -6,8 +6,113 @@ Claude Code + + + +

Claude Code

@@ -57,5 +162,15 @@ + diff --git a/public/projects.html b/public/projects.html index 2f8bdbb1..57e905cf 100644 --- a/public/projects.html +++ b/public/projects.html @@ -6,14 +6,119 @@ Projects - Claude Code Web Interface + + + +
@@ -96,5 +201,15 @@
+ diff --git a/server.js b/server.js index cea96f17..7ee363f1 100644 --- a/server.js +++ b/server.js @@ -89,6 +89,17 @@ app.get('/claude/ide/*', requireAuth, (req, res) => { res.sendFile(path.join(__dirname, 'public', 'claude-ide', 'index.html')); }); +// Projects page route +app.get('/projects', (req, res) => { + if (req.session.userId) { + // Authenticated - serve projects page + res.sendFile(path.join(__dirname, 'public', 'projects.html')); + } else { + // Not authenticated - redirect to login + res.redirect('/claude/'); + } +}); + // Serve static files (must come after specific routes) app.use('/claude', express.static(path.join(__dirname, 'public')));