mirror of
https://github.com/Cernobor/oko-server.git
synced 2025-02-24 08:27:17 +00:00
All checks were successful
continuous-integration/drone/push Build is passing
* X-User-ID header is processed to get user ID. * Time of last request for a user is saved into DB. * Time of last upload and download is stored for a user. * Added DB migration to add columns into users table to store the times and app version. * Backward fix of datatype of the deadline column in features table. * Switched from crawshaw.io/sqlite to zombiezen.com/go/sqlite. * Refactored DB handling. * Used migration routine from zombiezen in favour of manual one. * Runtime DB reinit simply deletes the db file and initializes the db anew. Fix #6
26 lines
833 B
Go
26 lines
833 B
Go
package server
|
|
|
|
const (
|
|
URIPing = "/ping"
|
|
URIBuildInfo = "/build-info"
|
|
URIHardFail = "/hard-fail"
|
|
URISoftFail = "/soft-fail"
|
|
URIAppVersions = "/app-versions"
|
|
URIAppVersion = "/app-versions/:version"
|
|
URIReinit = "/reinit"
|
|
URIUsageInfo = "/usage-info"
|
|
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"
|
|
UserIDHeader = "X-User-ID"
|
|
)
|