koopjs / FeatureServer

An open source Geoservices Implementation (deprecated)
https://geoservices.github.io
Other
101 stars 32 forks source link

Support info routes with trailing slashes #157

Closed rgwozdz closed 5 years ago

rgwozdz commented 5 years ago

Trailing slashes on /FeatureServer/ and /FeatureServer/:layerId/ lead to 400 errors; However, ArcGIS Server supports such requests and are equivalent to the same routes without the trailing slash. Some clients use such a call to determine if the resource is a feature service that supports ArcGIS REST API.

The PR adds a regex to properly route such requests.