mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
Fix linebreak and url
This commit is contained in:
@@ -29,7 +29,9 @@ async function Post(req: NextApiRequest, res: NextApiResponse) {
|
||||
throw new Error(`API Key for service "${service.name}" is missing`);
|
||||
}
|
||||
|
||||
const result = await new Client(service.url, service.apiKey).queuePause();
|
||||
const { origin } = new URL(service.url);
|
||||
|
||||
const result = await new Client(origin, service.apiKey).queuePause();
|
||||
|
||||
return res.status(200).json(result);
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user