koopjs / koop

Transform, query, and download geospatial data on the web.
http://koopjs.github.io
Other
659 stars 127 forks source link

Custom FeatureServer Url #335

Closed sahbijabnouni closed 5 years ago

sahbijabnouni commented 5 years ago

I am writing a new koop provider and I want to custom the default url. Is it possible with the new version if yes, is there any doc? Requirement: instead of the default one /iasWorld/FeatureServer/:layer/:method': I want /iasWorld/:table/FeatureServer/:layer/:method

rgwozdz commented 5 years ago

@sahbijabnouni - check out output-services route parameters on the provider specification page and consider prefixing your routes during provider registration (for example, koop.register(provider, { routePrefix: '/api/v1}).

With route parameters :hosts and :id and route prefixing, you should be able to customize to your needs.

sahbijabnouni commented 5 years ago

Thanks rgwozdz. I have a question about the koop logger. I did not find documentation. How to set the logging configuration.

rgwozdz commented 5 years ago

@sahbijabnouni - can you open another issue? Closing this.