mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
match: remove redundant url
argument
This commit is contained in:
parent
c5c3682462
commit
0a7cdfbbfe
2 changed files with 3 additions and 2 deletions
|
@ -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, {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue