audiobookshelf/server
Lars Kiesow b0edac4234 Allow specifying start and end of progress via API
This patch is a minor extension to the update progress and batch update
progress API and allows you to specify `finishedAt` and `startedAt` when
updating a progress.

If not specified, both values are still automatically set to the current
time. If just `finishedAt` is specified, `startedAt` is set to the same
value.

Example API request:

```
❯ curl -i -X PATCH \
  'http://127.0.0.1:3333/api/me/progress/li_ywupqxw5d22adcadpa' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJyb290IiwidXNlcm5hbWUiOiJyb290IiwiaWF0IjoxNjY4OTYxNjAxfQ._NbilCoFy_hfoqy7uvbV4E_0X6qgLYapQ_MoRptP0oI' \
  -H 'Content-Type: application/json' \
  --data-raw '{"isFinished":true, "finishedAt": 1668556852000, "startedAt": 1668056852000}'
```
2022-11-23 01:32:52 +01:00
..
controllers Update:API status codes and default provider for findCovers route 2022-11-20 16:12:30 -06:00
finders Add:Region support for audible chapter lookup 2022-10-15 15:31:07 -05:00
libs Update server/libs/nodeFfprobe/index.js 2022-09-24 17:36:29 -05:00
managers Update:Encode & embed metadata API endpoints, separate cache & search endpoints into controllers 2022-11-19 13:28:06 -06:00
objects Allow specifying start and end of progress via API 2022-11-23 01:32:52 +01:00
providers Fix:Australian audible TLD #1191 2022-11-20 17:17:25 -06:00
routers Update:Encode & embed metadata API endpoints, separate cache & search endpoints into controllers 2022-11-19 13:28:06 -06:00
scanner Fix:Podcast quick match genres 2022-11-09 16:50:26 -06:00
utils Update:More localization strings #1103 2022-11-08 17:10:08 -06:00
Auth.js Update:Add client ip address in server log for failed auth attempts #1172 2022-11-17 18:04:11 -06:00
Db.js Update:Rename UserCollections to Collections 2022-11-11 17:13:10 -06:00
Logger.js
Server.js Add:API endpoint to get users online and open listening sessions #1125 2022-11-10 17:42:20 -06:00
Watcher.js