0.2.9 • Published 6 years ago

erwan v0.2.9

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago
  • 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()
0.2.9

6 years ago

0.2.8

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago