Skip to content

Commit

Permalink
fix(jellyfin): Attempt to fix route redirect #92
Browse files Browse the repository at this point in the history
Should not be appending to route but replacing...see if leading slash fixes things
  • Loading branch information
FoxxMD committed Aug 31, 2023
1 parent c1a91ab commit e4a647d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/server/jellyfinRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const setupJellyfinRoutes = (app: ExpressWithAsync, logger: Logger, scrob
const jellyfinJsonParser = bodyParser.json({type: 'text/*'});
const jellyIngress = new JellyfinNotifier();
app.postAsync('/jellyfin', async function(req, res) {
res.redirect(307, 'api/jellyfin/ingress');
res.redirect(307, '/api/jellyfin/ingress');
});
app.postAsync('/api/jellyfin/ingress',
async function (req, res, next) {
Expand Down
2 changes: 1 addition & 1 deletion src/backend/server/plexRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const setupPlexRoutes = (app: ExpressWithAsync, logger: Logger, scrobbleS
res.send('OK');
};
app.postAsync('/plex', async function (req, res) {
res.redirect(307, 'api/plex/ingress');
res.redirect(307, '/api/plex/ingress');
});
app.postAsync('/api/plex/ingress', plexIngressMiddle, plexMiddle, plexIngressRoute);
}
Expand Down

0 comments on commit e4a647d

Please sign in to comment.