0.2.9 • Published 7 years ago

erwan v0.2.9

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

7 years ago

0.2.8

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago