Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 349 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 349 Bytes

kelp-server

Super tiny web-server framework in Node.js

const { createServer } = require('kelp-server');

class Home {
  index() {
    return "hello world";
  }
}

const server = createServer({
  routes: [
    `get / => Home#index`
  ],
  middlewares: [],
  controllers: [Home],
  defaultErrorHandler: true,
});

server.listen(3000);