jkyberneees / fastify-gateway

A Node.js API gateway that just works!
https://www.npmjs.com/package/k-fastify-gateway
MIT License
107 stars 14 forks source link

http methods #18

Closed Betank closed 5 years ago

Betank commented 5 years ago

It would be nice to also have the possibility to define http methods for routes, like

{
    prefix: '/public',
    prefixRewrite: '',
    target: 'http://localhost:3000',
    methods: ['GET']
  }
jkyberneees commented 5 years ago

Thanks once more @Betank for your collaboration here. The feature just landed in https://github.com/jkyberneees/fastify-gateway/releases/tag/v2.1.0

Regards