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/apps/meteor/app/lib/server/startup/robots.js

11 lines
339 B

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