mirror of
https://github.com/KevinMidboe/moviedb.git
synced 2025-10-29 17:50:25 +00:00
Uppercasing request type as this is what superagent expects
This commit is contained in:
@@ -75,6 +75,7 @@ Object.keys(endpoints.methods).forEach(function(method){
|
||||
var execMethod = function(type, params, endpoint, fn){
|
||||
params = params || {};
|
||||
endpoint = endpoint.replace(':id', params.id);
|
||||
type = type.toUpperCase();
|
||||
|
||||
request(type, endpoints.base_url + endpoint)
|
||||
.query({api_key : this.api_key})
|
||||
|
||||
Reference in New Issue
Block a user