1.1.1 • Published 3 years ago

nexp v1.1.1

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

🧙 Nexp

Express style API routing for Next.js

Installation

  npm i nexp --save

Usage

You can use nexp in Next.js api files like this:

import nexp from "nexp"

const router = nexp.Router();

router.set("GET", (req, res) => res.send(200));
router.set("POST", (req, res) => res.send(200));

export default router.handler();

or

import nexp from "nexp"

const router = new nexp();

router.set("GET", (req, res) => res.send(200));
router.set("POST", (req, res) => res.send(200));

export default router.handler();

Build using

  • Typescript

Licence

MIT

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago