Browse Source

Use default HTTP code (302) for maintenance redirection

master
KaKi87 3 months ago
parent
commit
72ab4da8ca
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      index.js

+ 1
- 1
index.js View File

@@ -7,7 +7,7 @@ const
Express server
*/
const app = express();
// app.get('/', (req, res) => res.redirect(301, 'maintenance.html'));
// app.get('/', (req, res) => res.redirect('maintenance.html'));
app.use(express.static('public'));
app.use(bodyParser.json());
app.post('/search', (request, response) => Play.search(request.body).then(results => response.json(results)));


Loading…
Cancel
Save