The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/lib/server/startup/robots.js

14 lines
367 B

import { Meteor } from 'meteor/meteor';
import { WebApp } from 'meteor/webapp';
import { settings } from '../../../settings';
Meteor.startup(function () {
return WebApp.connectHandlers.use(
'/robots.txt',
Meteor.bindEnvironment(function (req, res /* , next*/) {
res.writeHead(200);
res.end(settings.get('Robot_Instructions_File_Content'));
}),
);
});