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:
2017-10-21 12:46:32 +02:00
committed by GitHub
3 changed files with 9 additions and 8 deletions

View File

@@ -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;

View File

@@ -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();
});