2022-09-25 01:31:59 -04:00
|
|
|
const minecraft = require('../app/MinecraftServer');
|
|
|
|
|
2022-09-25 00:40:25 -04:00
|
|
|
exports.getIndex = function(req, res) {
|
2022-09-25 01:31:59 -04:00
|
|
|
var server = new minecraft.Server('/opt/minecraft/bg_w3');
|
2022-09-25 00:59:05 -04:00
|
|
|
res.render('index', {
|
2022-09-25 01:31:59 -04:00
|
|
|
servers: [server],
|
2022-09-25 00:59:05 -04:00
|
|
|
});
|
2022-09-25 00:40:25 -04:00
|
|
|
};
|