Add root redirect to repo

This commit is contained in:
Max Wofford 2025-02-24 21:06:38 -05:00
parent b3d6496404
commit a521298112

View file

@ -29,6 +29,11 @@ expressApp.use(express.urlencoded({ extended: true }));
// Mount API for all versions
expressApp.use('/api', apiRoutes);
// redirect route to "https://github.com/hackclub/cdn"
expressApp.get('/', (req, res) => {
res.redirect('https://github.com/hackclub/cdn');
});
// Error handling middleware
expressApp.use((err, req, res, next) => {
logger.error('API Error:', {