Merge pull request #46 from KevinMidboe/api/update_requested
Api/update requested
This commit was merged in pull request #46.
This commit is contained in:
@@ -7,7 +7,7 @@ class PlexRepository {
|
||||
|
||||
searchMedia(query) {
|
||||
var options = {
|
||||
uri: 'http://10.0.0.41:32400/search?query=' + query,
|
||||
uri: 'http://10.0.0.42:32400/search?query=' + query,
|
||||
headers: {
|
||||
'Accept': 'application/json'
|
||||
},
|
||||
@@ -53,4 +53,4 @@ class PlexRepository {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PlexRepository;
|
||||
module.exports = PlexRepository;
|
||||
|
||||
@@ -34,7 +34,7 @@ router.use(function(req, res, next) {
|
||||
res.setHeader('Access-Control-Allow-Origin', origin);
|
||||
}
|
||||
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization');
|
||||
res.header('Access-Control-Allow-Methods', 'POST, GET', 'PUT');
|
||||
res.header('Access-Control-Allow-Methods', 'POST, GET, PUT');
|
||||
|
||||
next();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user