Commit Graph

23 Commits

Author SHA1 Message Date
307a8352a3 Now takes both id and type because there is two different sets of id pools, and need to select the corrent one. 2017-10-06 15:37:09 +02:00
650c2603e4 Changed the input path of requestRepo 2017-10-06 15:16:45 +02:00
fb479e7a37 Renamed function in requestRepo to updateRequestedById 2017-10-06 15:14:31 +02:00
61c242b5eb Passes the id from request parameter and status we want to change to from the request body. 2017-10-06 15:03:47 +02:00
51d446f378 Added endpoint for updating a requested item. 2017-10-06 15:02:44 +02:00
f8ff71bcff Removed a no longer used ip address for allowed origins. 2017-10-06 12:14:05 +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
5fbedeb4b2 Misspelled User-Agent, when should have been user-agent. 2017-10-03 16:26:03 +02:00
a819a4bbf3 Now passes the user agent that is making the post request (requesting content) so it can be saved in the db. 2017-10-03 16:11:15 +02:00
a8166bcad9 Removed unused console. 2017-09-27 17:56:36 +02:00
149b05ef28 Calling function for fetching all the requested items. 2017-09-27 17:55:07 +02:00
e43bcbdd52 Added endpoint for getting all requests. 2017-09-27 17:54:34 +02:00
bab4af08d9 Added the use of tokenToUser so that it is verified that a valid token is in the request header when doing actions that need login verification. 2017-09-27 16:27:05 +02:00
a3de70e2da Created a middleware for requests that checks for a token in the Authentication field in the header and verifies that the token is valid for a user. 2017-09-27 16:25:54 +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
bb6dd1ad59 Added middleware for authentiaction, endpoints for a user and import for token handling. 2017-09-27 14:02:59 +02:00
daa9a7749e Now also the ip address is passed to the sendRequest function in requestRepository so that the requesters ip address can be logged in the database. 2017-09-26 20:43:56 +02:00
ae66e9a684 Changed variable name from movie to searchResult and now checks if the result list in the return JSON object is empty before sending a result back to client. 2017-09-20 10:25:01 +02:00
28d0b63960 Added TODO and a output of what is requested in the router 2017-09-03 18:17:07 +02:00
9eb31ea433 Added type input to the sendRequest function. 2017-09-03 18:16:26 +02:00
7a1f709d90 Small changed that first checks if the variable is undefined or not and then length 2017-09-03 17:06:19 +02:00
2dc22b386d Added endpoints for discover media (either movie or show), getUpcoming movies, nowPlaying (movies or shows), popular (movie or show) and search similar where the type movie/show must be defined 2017-09-03 17:02:02 +02:00
47aa638fd8 Moved eveything related to the api to a seperate folder seasoned_api. 2017-08-06 16:45:02 +02:00