Skip to content

Instantly share code, notes, and snippets.

@mariuskubilius
mariuskubilius / app.js
Last active January 15, 2018 19:29 — forked from zoranf/app.js
app.get('/lobby/:id', function(req, res) {
db.games.find( { name: req.params.id }, function(err, game) {
if (err) {
console.log('error');
return res.render('404', {
title: 'Game not found',
message: 'Game ' + req.params.id + 'not found'
});