Apply lowercase dashed url format everywhere
The URLs are all over the place. Due to three kinds of defaults:
-
/updateEventsand/update_eventsworks but/update-eventsdoes not, and -
/update-events/1and/updateEvents/1works but/update_events/1does not.
There are also a bunch of custom routes that do not follow any of the previous three capitalization/interpunction guidelines:
-
/admin/articles/add/CDLBand/articles/cdlbcoexist; -
/admin/CdliTabletis in neither camelCase, snake_case or kebab-case but rather in PascalCase; and -
/admin/uploads/geturlis simply in lowercase (I would expect/admin/uploads/get-urlor/admin/uploads/getUrl).
To fix this I think we need to settle on form of routes. I personally like the hyphenated kebab-case, and I think it is very common in URLs. I find camelCase too asymmetric (visually), and also hard to work with (when editing the cursor does not distinguish the words, as opposed with interpunction). PascalCase is admittedly less asymmetric but in all the rest of the URL is generally lowercase so that looks odd to me. Underscored snake_case has the same technical disadvantages as the two previous ones but does look nicer to me.
This is different from #516 (closed) as that is more about multiple routes for the same resource and inconsistent structure of route elements. However, I think this was discussed before at some point, with @epageperron possibly preferring camelCase if I recall correctly?