Restrict uncapitalise middleware for API

no ref
- Do not lowercase anything after /api/v0.1/<resource>/ to protect :key/:slug
Merge pull request #3898 from halfdan/fix-uncap-api

Restrict uncapitalise middleware for API