@pro303/http-server
v0.0.7
Published
Simple HTTP server with sessions and CORS enabled.
Readme
Simple HTTP server with sessions and CORS enabled.
Can be used for making APIs.
API example:
class TestApi extends HttpServer {
constructor () {
super ();
}
onGetRequest (req, res) {
switch (req.path) {
case '/api':
res.json({text: 'api endpoint without parameters'})
}
}
}
