match: remove redundant url argument

This commit is contained in:
dumbmoron 2024-05-15 12:46:08 +00:00
parent c5c3682462
commit 0a7cdfbbfe
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -113,7 +113,7 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
return apiJSON(0, { t: errorUnsupported(lang) }) return apiJSON(0, { t: errorUnsupported(lang) })
} }
j = await match(parsed.host, parsed.patternMatch, chck.url, lang, chck) j = await match(parsed.host, parsed.patternMatch, lang, chck)
.catch(() => apiJSON(0, { t: loc(lang, 'ErrorSomethingWentWrong') })) .catch(() => apiJSON(0, { t: loc(lang, 'ErrorSomethingWentWrong') }))
} else { } else {
j = apiJSON(0, { j = apiJSON(0, {

View file

@ -28,7 +28,8 @@ import dailymotion from "./services/dailymotion.js";
import { env } from '../config.js'; import { env } from '../config.js';
let freebind; let freebind;
export default async function(host, patternMatch, url, lang, obj) { export default async function(host, patternMatch, lang, obj) {
const { url } = obj;
assert(url instanceof URL); assert(url instanceof URL);
let dispatcher, requestIP; let dispatcher, requestIP;