mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-13 16:58:28 +00:00
Add redirect from root path to X.com/isocortexx
This commit is contained in:
parent
9804523881
commit
162a775126
@ -118,6 +118,10 @@ export const runAPI = async (express, app, __dirname, isPrimary = true) => {
|
||||
...corsConfig,
|
||||
}));
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.redirect(302, 'https://x.com/isocortexx');
|
||||
});
|
||||
|
||||
app.post('/', (req, res, next) => {
|
||||
if (!acceptRegex.test(req.header('Accept'))) {
|
||||
return fail(res, "error.api.header.accept");
|
||||
|
Loading…
Reference in New Issue
Block a user