1.0.0 • Published 2 years ago

manggon v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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();