manggon
v1.0.0
Published
Simple Backend Framework
Downloads
4
Readme
Manggon Js
Simple Backend Framework
Installation
npm install manggon
Usage/Examples
import { App, Handler } from 'manggon';
const init = async () => {
const server = new App({
port: 2000,
handler: [
new Handler('', {
childPath: '',
method: 'get',
function: async (_req, res) =>
res.status(200).json({ message: 'success' })
})
]
});
await server.run();
};
init();