Commit Graph

8 Commits

Author SHA1 Message Date
zegkljan
8440e3b7d7 Collecting usage info, change sqlite lib.
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
2023-06-11 18:06:52 +02:00
zegkljan
63e79c657c API doc, removed -reinit-db option.
All checks were successful
continuous-integration/drone/push Build is passing
* Finished API documentation.
* Removed -reinit-db command line argument.

Fix #5
2023-06-11 17:41:26 +02:00
zegkljan
90f8fef40a Utility APIs for app version management.
All checks were successful
continuous-integration/drone Build is passing
* GETing individual app versions.
* DELETEing individual app versions.

Fix #3
2022-10-02 16:31:13 +02:00
zegkljan
7c8a430f49 App version management.
* 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
2022-09-23 00:59:20 +02:00
zegkljan
c1cdd4f904 Retrieving proposals.
* Added GET /data/proposals endpoint which returns all submitted enhancement proposals.

Fix #2
2022-09-15 21:03:17 +02:00
zegkljan
1cf44e3bfc build info
All checks were successful
continuous-integration/drone/push Build is passing
* API endpoint
* dockerfile adds commit hash and build time during build
2022-02-20 00:20:19 +01:00
zegkljan
3615deb985 remote DB reset 2022-02-12 11:34:29 +01:00
zegkljan
08a203e4a6 dual offline/online, map info
* Server provides map info with zoom, default center and paths to both downloadable pack and tile url template.
2022-02-05 17:56:13 +01:00