mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix formatting
This commit is contained in:
@@ -431,7 +431,7 @@ function registerEndpoints(app, jsonParser) {
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/api/sd/comfy/vaes', jsonParser, async(request, response)=>{
|
||||
app.post('/api/sd/comfy/vaes', jsonParser, async (request, response) => {
|
||||
try {
|
||||
const url = new URL(request.body.url);
|
||||
url.pathname = '/object_info'
|
||||
@@ -449,7 +449,7 @@ function registerEndpoints(app, jsonParser) {
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/api/sd/comfy/workflows', jsonParser, async(request, response) => {
|
||||
app.post('/api/sd/comfy/workflows', jsonParser, async (request, response) => {
|
||||
try {
|
||||
const data = getComfyWorkflows();
|
||||
return response.send(data);
|
||||
@@ -459,7 +459,7 @@ function registerEndpoints(app, jsonParser) {
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/api/sd/comfy/workflow', jsonParser, async(request, response)=>{
|
||||
app.post('/api/sd/comfy/workflow', jsonParser, async (request, response) => {
|
||||
try {
|
||||
let path = `public/user/workflows/${sanitize(String(request.body.file_name))}`;
|
||||
if (!fs.existsSync(path)) {
|
||||
@@ -476,7 +476,7 @@ function registerEndpoints(app, jsonParser) {
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/api/sd/comfy/saveWorkflow', jsonParser, async(request, response)=>{
|
||||
app.post('/api/sd/comfy/saveWorkflow', jsonParser, async (request, response) => {
|
||||
try {
|
||||
if (!fs.existsSync('public/user/workflows')) {
|
||||
fs.mkdirSync('public/user/workflows');
|
||||
@@ -494,7 +494,7 @@ function registerEndpoints(app, jsonParser) {
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/api/sd/comfy/deleteWorkflow', jsonParser, async(request, response)=>{
|
||||
app.post('/api/sd/comfy/deleteWorkflow', jsonParser, async (request, response) => {
|
||||
try {
|
||||
let path = `public/user/workflows/${sanitize(String(request.body.file_name))}`;
|
||||
if (fs.existsSync(path)) {
|
||||
@@ -507,7 +507,7 @@ function registerEndpoints(app, jsonParser) {
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/api/sd/comfy/workflows', jsonParser, async (request, response)=>{
|
||||
app.post('/api/sd/comfy/workflows', jsonParser, async (request, response) => {
|
||||
try {
|
||||
const data = getComfyWorkflows();
|
||||
return response.send(data);
|
||||
@@ -517,7 +517,7 @@ function registerEndpoints(app, jsonParser) {
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/api/sd/comfy/workflow', jsonParser, async(request, response)=>{
|
||||
app.post('/api/sd/comfy/workflow', jsonParser, async (request, response) => {
|
||||
try {
|
||||
let path = `public/user/workflows/${sanitize(String(request.body.file_name))}`;
|
||||
if (!fs.existsSync(path)) {
|
||||
@@ -534,7 +534,7 @@ function registerEndpoints(app, jsonParser) {
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/api/sd/comfy/saveWorkflow', jsonParser, async(request, response)=>{
|
||||
app.post('/api/sd/comfy/saveWorkflow', jsonParser, async (request, response) => {
|
||||
try {
|
||||
if (!fs.existsSync('public/user/workflows')) {
|
||||
fs.mkdirSync('public/user/workflows');
|
||||
@@ -552,7 +552,7 @@ function registerEndpoints(app, jsonParser) {
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/api/sd/comfy/deleteWorkflow', jsonParser, async(request, response)=>{
|
||||
app.post('/api/sd/comfy/deleteWorkflow', jsonParser, async (request, response) => {
|
||||
try {
|
||||
let path = `public/user/workflows/${sanitize(String(request.body.file_name))}`;
|
||||
if (fs.existsSync(path)) {
|
||||
|
Reference in New Issue
Block a user