Merge pull request #1448 from valadaptive/sd-next-upscalers

Rename sd-next/upscalers to sd/sd-next/upscalers
This commit is contained in:
Cohee 2023-12-04 19:08:26 +02:00 committed by GitHub
commit d6fdafcacf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -967,7 +967,7 @@ async function getAutoRemoteUpscalers() {
async function getVladRemoteUpscalers() { async function getVladRemoteUpscalers() {
try { try {
const result = await fetch('/api/sd-next/upscalers', { const result = await fetch('/api/sd/sd-next/upscalers', {
method: 'POST', method: 'POST',
headers: getRequestHeaders(), headers: getRequestHeaders(),
body: JSON.stringify(getSdRequestBody()), body: JSON.stringify(getSdRequestBody()),

View File

@ -291,7 +291,7 @@ function registerEndpoints(app, jsonParser) {
} }
}); });
app.post('/api/sd-next/upscalers', jsonParser, async (request, response) => { app.post('/api/sd/sd-next/upscalers', jsonParser, async (request, response) => {
try { try {
const url = new URL(request.body.url); const url = new URL(request.body.url);
url.pathname = '/sdapi/v1/upscalers'; url.pathname = '/sdapi/v1/upscalers';