@squzy/express
TypeScript icon, indicating that this package has built-in type declarations

1.10.0 • Public • Published

@squzy/express

Package for usage that inside express application

How to use

npm install @squzy/express --save

It is should be on route level, because on root level it is impossible to get access to matched router without patching(we dont wanna do that)

import { createMiddleware } from "@squzy/express"
import { createApplication } from "@squzy/core"

const application = await createApplication({
    apiHost: "http://localhost:8080",
    name: "nodejs"
})

const router = express.Router();

router.get('/adamin/:name', createMiddleware(application), function (req, res) {
    //console.log(req.route)
    res.send('hello world')
})

Readme

Keywords

none

Package Sidebar

Install

npm i @squzy/express

Weekly Downloads

2

Version

1.10.0

License

ISC

Unpacked Size

6.5 kB

Total Files

9

Last publish

Collaborators

  • pxyup