Add middleware to redirect get requests with trailing slashes
This should make the api to be a little bit easier to explore.
With it we can go to https://localhost/backend/api/v1/devices/
and get the redirect to the correct route https://localhost/backend/api/v1/devices
(without the slash at the end) - and no 404 anymore.