mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 22:05:13 +00:00
Add root redirect to repo
This commit is contained in:
parent
b3d6496404
commit
a521298112
1 changed files with 5 additions and 0 deletions
5
index.js
5
index.js
|
|
@ -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:', {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue