mcst/routes/home.js

9 lines
211 B
JavaScript

const minecraft = require('../app/MinecraftServer');
exports.getIndex = function(req, res) {
var server = new minecraft.Server('/opt/minecraft/bg_w3');
res.render('index', {
servers: [server],
});
};