0.0.6 • Published 4 years ago

uspring v0.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

A very fast Webserver which has interface like springboot

Background note

Motivation:

I am impressed with the simplicity of springboot controllers. With very little and readable configuration, programmer can define an Http endpoint, adding validation and even generate swagger with this simple configuration.

Example

router
    .get("/hello")
    .QueryString('test', Joi.string().required())
    .Apply((RESULtT, req, res) => {
         res.json({'hello': 'vidy'})
    })