# Function rewrites based on HTTP method for REST API

**URL:** <https://answers.netlify.com/t/function-rewrites-based-on-http-method-for-rest-api/23501>\
**Category:** Support\
**Tags:** lambda-functions, redirects\
**Created:** [September 29, 2020, 7:55pm UTC](https://answers.netlify.com/t/function-rewrites-based-on-http-method-for-rest-api/23501 "2020-09-29T19:55:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![parkan](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/parkan/32/16472_2.png) [@parkan](https://answers.netlify.com/u/parkan)\
**Post date:** [September 29, 2020, 7:59pm UTC](https://answers.netlify.com/t/function-rewrites-based-on-http-method-for-rest-api/23501/2 "2020-09-29T19:59:36Z")

</div>

seems like placing a proxy in front of netlify is discouraged, so solution (1) is out: [[Support Guide] Why not proxy to Netlify?](https://answers.netlify.com/t/support-guide-why-not-proxy-to-netlify/8869)

however, I am getting a little worried that DELETE/PUT also don’t work in a broader way, as per [Can't call lambda function with DELETE or PUT methods - #3 by Niceguy955](https://answers.netlify.com/t/cant-call-lambda-function-with-delete-or-put-methods/6246/3)

EDIT: checked DELETE with netlify dev and it seems to be working ok

---

_[View the full topic](https://answers.netlify.com/t/function-rewrites-based-on-http-method-for-rest-api/23501)._
