erwan
v0.2.9
Published
Extended Micro framework
Downloads
17
Readme
- Getting started :
const erwan = require('erwan')
class Home extends erwan.Route {
on(req, h) {
return 'Hello from Erwan.JS'
}
}
class App extends erwan.Server {
on() {
console.log('Started')
}
}
const home = new Home('GET', '/')
const router = [home]
const server = new App(3000, router)
server.start()