hrj
7bfde4eddb
simplified check for user access
...
1. Make fields private as much as possible
2. single public function to check if user is valid and is within limit.
Advantage is that only a single call to synchronisation() is required.
3. Bumped up the rate limit
2020-07-16 17:36:19 +05:30
hrj
f08f6041ec
renaming and removal of unused code
2020-07-16 17:23:48 +05:30
Rahul Rudragoudar
1d7ef512bd
DB synchronisation on media endpoint ( #47 )
...
* Update sql to map uuid to token
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Fix millis to secs conversion
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add synchronisation to media enpoint DB access
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Change error code for rate limiter
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2020-07-08 21:28:11 +05:30
hrj
300ff3162d
minor: rate limit increase
2020-07-03 22:17:40 +05:30
hrj
1515af5f72
minor debug
2020-07-03 22:17:29 +05:30
hrj
644a106a31
return error as json when rate limit reached or user not found
2020-07-03 22:15:27 +05:30
hrj
03548d17ae
refactor, separate code into files
2020-07-03 20:21:35 +05:30