digidem / mapeo-map-server

Offline map style and tile server
MIT License
5 stars 2 forks source link

refactor: move "get an import" from HTTP API to JS API #110

Closed EvanHahn closed 7 months ago

EvanHahn commented 8 months ago

This moves the public "get an import" interface from HTTP to JavaScript. In other words, you won't make an HTTP GET to /import/:importId any more. Instead, you'll call server.getImport(importId).

This is the first step in a larger refactor, where most of the interface will be moved from HTTP to JS. Because this is the first step, several changes have to be made:

I suspect future moves, such as migrating GET /styles, will be much smaller patches.

BREAKING CHANGE: GET /imports/:importId replaced with getImport()