Skip to content

Commit f5c8259

Browse files
committed
move jenkins endpoint before global err handler
1 parent 0f7cedc commit f5c8259

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

server/server.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ app.use('/mcp/v1', mcpRoutes);
135135
// Mount GitHub OAuth routes at /auth/github
136136
app.use('/auth/github', githubAuthRouter);
137137

138+
app.use('/jenkins', jenkinsRouter);
139+
// // Mount GitHub OAuth routes at /auth/github
140+
// app.use('/auth/github', githubAuthRouter);
141+
138142
// --- Global Error Handler ---
139143
app.use((err, req, res, next) => {
140144
console.error('Global Error:', err);
@@ -145,9 +149,7 @@ app.use((err, req, res, next) => {
145149
});
146150
});
147151

148-
app.use('/jenkins', jenkinsRouter);
149-
// // Mount GitHub OAuth routes at /auth/github
150-
// app.use('/auth/github', githubAuthRouter);
152+
151153

152154
const port = process.env.PORT || 4000;
153155
app.listen(port, () => console.log(`API on http://localhost:${port}`));

0 commit comments

Comments
 (0)