Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

express.js + PATCH verb

Tags:

express

Does Express support the HTTP verb "PATCH", as in:

app.patch("/api/resource", function(req, res){ ... }); 

I checked the docs and it seems pretty unclear to me. They discuss GET and POST, but seem to lump everything else under "all the other HTTP verbs".

like image 507
Doug Seelinger Avatar asked Aug 12 '14 18:08

Doug Seelinger


1 Answers

Yes.

Express.js has a dependency on node-methods. The list of supported methods is found here. The loop that creates the app.VERB methods for express is here.

like image 167
Tony Avatar answered Sep 23 '22 05:09

Tony