Skip to content

Commit e4befae

Browse files
committed
fix(lastfm): Fix endpoint regex to exclude auth callback url
1 parent 0e00b42 commit e4befae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/server/endpointLastfmRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const setupLastfmEndpointRoutes = (app: ExpressWithAsync, parentLogger: L
1515
const nonEmptyCheck = nonEmptyBody(logger, 'LFM Endpoint');
1616

1717
const webhookIngress = new LFMEndpointNotifier(logger);
18-
app.useAsync(/(\/api\/lastfm.*)|(\/2.0\/?)$/,
18+
app.useAsync(/(\/api\/lastfm(?!\/callback))|(\/2.0\/?)$/,
1919
async function (req, res, next) {
2020
// track request before parsing body to ensure we at least log that something is happening
2121
// (in the event body parsing does not work or request is not POST/PATCH)

0 commit comments

Comments
 (0)