2.1.0 • Published 8 years ago
gerkon v2.1.0
const Gerkon = require('gerkon');
const app = new Gerkon();
app.route('/', (req, res) => {
res.send('Index page');
})
.route('/hello{world}', (req, res) => {
res.send('Hello world!');
})
.route('*', (req, res) => {
res.sendCode(404, 'not found');
})
.listen(8080);