Added LXC resource page

This commit is contained in:
2023-03-21 22:45:56 +01:00
parent 4a997778e6
commit c66d035a1c
10 changed files with 212 additions and 68 deletions

View File

@@ -19,7 +19,7 @@ export async function createTicket({
username,
password,
}: CreateTicketOpts) {
const url = `${domain}/api2/json/access/ticket`;
const url = new URL("/api2/json/access/ticket", domain).toString();
const headers = { "Content-Type": "application/json" };
return axios.post<CreateTicketResp>(url, { username, password }, { headers });
}