API is case sensitive
Opened this issue · 4 comments
rmvermeulen commented
This is counter to common practice.
api/rest/mediaProfiles/
andapi/rest/mediaprofiles/
Should be aliases of each other, not separate endpoints.
We accidentally ran into this today. I couldn't figure out how fix this at a glance, so I didn't. The discussion here at least confirms it should be insensitive, but it's not really a big deal.
ronkorving commented
IMHO it should be case sensitive. But iirc Express defaults to case insensitivity. I guess we should follow Express settings?
rmvermeulen commented
Since it uses express' router, I think using those settings would be the expected behaviour. We ourselves always use lowercase paths anyway so should not hit this outside of testing.
ronkorving commented
Wanna PR this? :)
rmvermeulen commented
Halfway there :) Can't allocate too much time currently