mirror of
https://github.com/Cernobor/oko-server.git
synced 2025-02-24 08:27:17 +00:00
* DB migration adds app_versions table for managing known app versions. * /ping reads app version from User-Agent header and responds with latest version if the app is OKO and its version is older than the latest one stored. * Added endpoint /app-versions which * lists all known versions via GET * adds/updates a version via POST #3 Fix #4
23 lines
713 B
Go
23 lines
713 B
Go
package server
|
|
|
|
const (
|
|
URIPing = "/ping"
|
|
URIBuildInfo = "/build-info"
|
|
URIHardFail = "/hard-fail"
|
|
URISoftFail = "/soft-fail"
|
|
URIAppVersions = "/app-versions"
|
|
URIReinit = "/reinit"
|
|
URIMapPack = "/mappack"
|
|
URIHandshake = "/handshake"
|
|
URIData = "/data"
|
|
URIDataPeople = "/data/people"
|
|
URIDataFeatures = "/data/features"
|
|
URIDataFeaturesPhoto = "/data/features/:feature/photos/:photo"
|
|
URIDataProposals = "/data/proposals"
|
|
URITileserverRoot = "/tileserver"
|
|
URITileserver = URITileserverRoot + "/*x"
|
|
URITileTemplate = URITileserverRoot + "/map/tiles/{z}/{x}/{y}.pbf"
|
|
|
|
AppName = "OKO"
|
|
)
|