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
5 lines
92 B
SQL
5 lines
92 B
SQL
CREATE TABLE app_versions (
|
|
version text NOT NULL PRIMARY KEY,
|
|
address text NOT NULL
|
|
);
|