mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Use Express router for translate endpoint
This commit is contained in:
@@ -3615,7 +3615,7 @@ require('./src/endpoints/horde').registerEndpoints(app, jsonParser);
|
||||
require('./src/endpoints/vectors').registerEndpoints(app, jsonParser);
|
||||
|
||||
// Chat translation
|
||||
require('./src/endpoints/translate').registerEndpoints(app, jsonParser);
|
||||
app.use('/api/translate', require('./src/endpoints/translate').router);
|
||||
|
||||
// Emotion classification
|
||||
require('./src/endpoints/classify').registerEndpoints(app, jsonParser);
|
||||
|
Reference in New Issue
Block a user