add a pairing endpoint

+ append / to folder paths
+ filter recently played by logged in user id
+ fix typo in login response
+ update track logger migration to add foreign key
This commit is contained in:
cwilvx
2024-06-09 16:14:09 +03:00
parent fcf1469428
commit b32d0a5743
8 changed files with 76 additions and 19 deletions
+2 -1
View File
@@ -55,7 +55,8 @@ CREATE TABLE IF NOT EXISTS track_logger (
duration integer NOT NULL,
timestamp integer NOT NULL,
source text,
userid integer NOT NULL DEFAULT 0
userid integer NOT NULL DEFAULT 1,
constraint fk_users foreign key (userid) references users(id) on delete cascade
);
CREATE TABLE IF NOT EXISTS users (