d8985aaff7
Correctly use username from req.loggedInUser
2022-01-03 19:17:27 +01:00
291bdf089c
Forget to rename copied link function to unlink
2019-12-22 13:42:13 +01:00
8eacde9ccc
Moved tautulli config settings to be fetched from our configuration (either env variable or conf/development.json.
2019-12-22 13:36:13 +01:00
f8847c62f2
UserRepository handles updating db settings better.
...
Moved the plex_userid to settings to expanded with functions for
updating and fetching settings, each with its own helper function
towards the database.
Since we had a linkPlexUserId function and we dont want plex_userid to
be updated from the updatesettings function we moved unlinking to a
separate endpoint and class function.
Also a new controller and endpoints for getting and updating settings.
2019-12-22 13:30:18 +01:00
a5248f0631
TODO comment for login
2019-11-25 23:38:52 +01:00
510c014549
Added endpoint for getting plays grouped by days of week.
2019-11-11 17:59:16 +01:00
2650497986
Tautulli will serve all the tautulli api calls. Mostly this will be used by user requests for getting stats related to the logged in user. WIP but currently watch time stats, plays by number of days, and view history has been implemented.
...
TODO:
- Error handling if tautulli request fails.
- Filter the responses and/or limit them from tautulli
- Handle parsing variable parameters from request
2019-11-04 23:11:00 +01:00
601fc1d0de
Renamed search_history controller to searchHistory
2019-11-04 22:57:59 +01:00
acc26a2f09
Renamed user history to search_history and fixed an issue where search history received the entire user object and not just the username
2019-11-04 20:32:41 +01:00
495a3b4838
Merged api/v2 into feature branch
2019-11-04 00:58:43 +01:00
6b737b8ab4
Updated all controller responses to return message not error on errors.
2019-11-04 00:57:27 +01:00
05b001de2e
Created endpoint for authenticating with plex and linking your plex user to the logged in seasoned user. User database table gets a new plex_userid column. This will be used to fetch tautulli stats for your account.
2019-11-04 00:43:42 +01:00
12afbf6364
Tokens can also have a admin property. When admin is defined its included in the jwt token.
2019-07-25 00:13:28 +02:00
ed07c77b13
Updated files with tripple === and some linting issues.
2018-05-06 18:23:29 +02:00
8fbd0eb9d8
Also unpacks the value of username before passing it to searchHistory.
2018-03-08 10:33:04 +01:00
ba96e27c43
Alongside the token the value of admin state is also sent.
2018-03-07 01:35:40 +01:00
02c36d041a
Removed console.log and fixed docstring comment.
2018-03-06 19:30:11 +01:00
7c4aeb48ab
When registering a token is also returned so we dont need to sign in after registration.
2018-03-06 19:26:28 +01:00
ca146d77bc
Fixed error message
2018-03-06 19:25:33 +01:00
1a693ef92f
Our new controller for getting a users requested items.
2018-03-06 19:21:55 +01:00
34982c14fe
Linted all controllers
2018-02-07 13:51:57 +01:00
1b29a08ce8
Removed a unused comment
2017-10-22 14:10:25 +02:00
7e27e19a0d
Added more strict header allowence and was a error where endpoints for user was not using router, but app.
2017-10-06 12:12:21 +02:00
698d2d6072
Created endpoints for user tasks like login, register and a test endpoint history. A test for checking that session token works as expected.
2017-09-27 16:19:02 +02:00