Skip to content

Commit f722c5a

Browse files
committed
fix(modules): Fix handling modules endpoints with URL params (?app_id)
1 parent f858ff3 commit f722c5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/modules/src/firebase/serve-modules-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export default (req: Request, res: Response) => {
1616
}
1717

1818
let { url } = req;
19+
[url] = url.split('?');
1920
if (url.endsWith('.json')) {
2021
url = url.slice(0, -5);
2122
}
22-
[url] = url.split('?');
2323
url = url.replace('/_api/modules', ''); // due to hosting rewrite
2424
const modName = url.split('/')[1];
2525

0 commit comments

Comments
 (0)