Add redirect from root path to X.com/isocortexx

This commit is contained in:
Roman Dutchak 2025-03-30 18:09:40 +03:00
parent 9804523881
commit 162a775126

View File

@ -118,6 +118,10 @@ export const runAPI = async (express, app, __dirname, isPrimary = true) => {
...corsConfig, ...corsConfig,
})); }));
app.get('/', (req, res) => {
res.redirect(302, 'https://x.com/isocortexx');
});
app.post('/', (req, res, next) => { app.post('/', (req, res, next) => {
if (!acceptRegex.test(req.header('Accept'))) { if (!acceptRegex.test(req.header('Accept'))) {
return fail(res, "error.api.header.accept"); return fail(res, "error.api.header.accept");