0.2.9 • Published 5 years ago

erwan v0.2.9

Weekly downloads
2
License
MIT
Repository
github
Last release
5 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

5 years ago

0.2.8

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago