Commit graph

36 commits

Author SHA1 Message Date
Paul Bienkowski 11c806dbe3 fix: parse "visible" flag when posting a track, and trim details nicely when PUTing it 2020-11-25 12:40:13 +01:00
Paul Bienkowski e607a1d64d chore: update routes to use new req.user 2020-11-25 11:00:51 +01:00
Paul Bienkowski 15edeb59e1 fix: show correct number of pages in global feed (only count visible tracks) 2020-11-24 20:22:49 +01:00
Paul Bienkowski cdadbb5df4 fix: a few issues with old node version, again 2020-11-24 00:32:49 +01:00
Paul Bienkowski 3b1376b661 feat: store user-agent (extracted OBS version only) for each track when uploading 2020-11-24 00:31:06 +01:00
Paul Bienkowski 2da013583b fix: raise forbidden when viewing invisible track and not author 2020-11-24 00:14:46 +01:00
Paul Bienkowski b63afb1146 feat: allow querystring + single file body uploads for editing tracks 2020-11-24 00:14:46 +01:00
Paul Bienkowski 3c1d666dc3 feat: allow multipart bodies in POST /api/tracks and PUT /api/tracks/:track 2020-11-24 00:14:46 +01:00
Paul Bienkowski 8cf01ba5f5 fix: a single-request upload shall just use /end 2020-11-23 23:21:36 +01:00
Paul Bienkowski 7460661607 fix: append to track body in /end too, and save new track in /add 2020-11-22 10:46:58 +01:00
Paul Bienkowski 33e8cbdb83 refactor: reorder /begin /add /end routes 2020-11-22 10:44:21 +01:00
Paul Bienkowski 6b98655c92 refactor: change addPointsToTrack -> parseTrackPoints generator 2020-11-21 23:07:58 +01:00
Paul Bienkowski b31d3e0e7d fix: parse tracks when they are fully uploaded in /end request, not before 2020-11-21 23:01:22 +01:00
Paul Bienkowski 0b8fed3e27 chore: make everything async instead of manual promise chaining 2020-11-21 20:05:03 +01:00
Paul Bienkowski b6ab3d0b1d chore: fix lint errors 2020-11-21 19:41:25 +01:00
Paul Bienkowski 481999b278 chore: format all files 2020-11-21 19:41:25 +01:00
Paul Bienkowski bcf9f95c6d fix: do not use ?. operator for node 10 2020-11-21 17:53:32 +01:00
Paul Bienkowski 0c3cf9263d feat: parse body when POSTing a new track 2020-11-21 13:47:56 +01:00
Paul Bienkowski f890fc673f refactor: switch to async/await syntax in track routes 2020-11-18 23:00:08 +01:00
Paul Bienkowski 114a9677f1 chore: fix some eslint in routes/api/tracks.js 2020-11-18 22:30:25 +01:00
Paul Bienkowski f3740e5f37 feat: generate TrackData points when saving tracks through PUT, and return raw body through GET /:track 2020-11-18 22:17:00 +01:00
Paul Bienkowski 22f8c46d6a wip 2020-11-18 20:53:35 +01:00
Paul Bienkowski bd815e9671 refactor: move TrackInfo and addPointsToTrack to new "logic" folder 2020-11-18 11:23:34 +01:00
Martin Grotz b3d9fb3137 feat: add registration flow with email verification 2020-10-22 23:53:43 +02:00
hpcwoess 70e2ec5672 replace NaN by 0 2020-09-08 10:33:19 +02:00
hpcwoess 1e72349026 update visibility 2020-08-28 21:50:53 +02:00
hpcwoess dbfe62df6a fixed global visibility query 2020-08-28 17:56:57 +02:00
hpcwoess 1ab316c774 tracks visible for all 2020-08-16 23:23:18 +02:00
hpcwoess d3a1c9edcc fixed partial upload 2020-08-16 00:27:11 +02:00
hpcwoess fc7d437f2e separate TrackData from track 2020-08-14 22:15:12 +02:00
root 061234b301 separate TrackData 2020-08-14 12:37:34 +02:00
root 934cedd3d0 adjust to new csv dat 2020-07-25 22:45:34 +02:00
root e4a1832c34 upload in parts 2020-07-04 01:27:47 +02:00
hpcwoess 5715d19f93 support parts 2020-07-03 13:50:07 +02:00
root a709c4a8e2 create track points from csv 2020-04-14 03:05:07 +02:00
root 02e78c7b38 first version of the OpenBikeSensor Web API 2020-04-13 02:02:40 +02:00