Create static robots.txt file, remove dynamic route

Fixes https://gitlab.com/timvisee/send/-/issues/17
This commit is contained in:
timvisee
2021-05-19 16:00:58 +02:00
parent 93e1d2f41a
commit 84da34169d
2 changed files with 2 additions and 1 deletions

View File

@@ -9,7 +9,6 @@ module.exports = function(app = choo({ hash: true })) {
app.route('/unsupported/:reason', body(require('./ui/unsupported')));
app.route('/error', body(require('./ui/error')));
app.route('/blank', body(require('./ui/blank')));
app.route('/robots.txt', function() {return 'User-agent: * Disallow: /'});
app.route('/oauth', function(state, emit) {
emit('authenticate', state.query.code, state.query.state);
});