enonic / lib-router

Router Library for Enonic XP.
Apache License 2.0
0 stars 1 forks source link

Support method PATCH #108

Open ComLock opened 1 year ago

ComLock commented 1 year ago

The HTTP 1.1 RFC doesn't define method PATCH, but it mentions it's RFC https://datatracker.ietf.org/doc/html/rfc7231#page-29

https://datatracker.ietf.org/doc/html/rfc5789

I can use router.all to implement method OPTIONS, but method PATCH fails before the callback, so I cannot use router.all to implement method PATCH.

Thus I currently don't know of a workaround to support method PATCH.

ComLock commented 1 year ago

The problem is not lib-router, but XP https://github.com/enonic/xp/issues/9131

rymsha commented 1 year ago

The problem is not lib-router

lib-router has to be updated when XP supports PATCH