mirror of
https://github.com/KevinMidboe/moviedb.git
synced 2026-02-11 03:49:07 +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){
|
var execMethod = function(type, params, endpoint, fn){
|
||||||
params = params || {};
|
params = params || {};
|
||||||
endpoint = endpoint.replace(':id', params.id);
|
endpoint = endpoint.replace(':id', params.id);
|
||||||
|
type = type.toUpperCase();
|
||||||
|
|
||||||
request(type, endpoints.base_url + endpoint)
|
request(type, endpoints.base_url + endpoint)
|
||||||
.query({api_key : this.api_key})
|
.query({api_key : this.api_key})
|
||||||
|
|||||||
Reference in New Issue
Block a user