mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Use Express router for assets + "files" endpoints
I've split out the "file/upload" endpoint into its own module, and renamed it to "files" to be consistent with the existing naming scheme.
This commit is contained in:
@ -152,7 +152,7 @@ export async function populateFileAttachment(message, inputId = 'file_form_input
|
||||
*/
|
||||
export async function uploadFileAttachment(fileName, base64Data) {
|
||||
try {
|
||||
const result = await fetch('/api/file/upload', {
|
||||
const result = await fetch('/api/files/upload', {
|
||||
method: 'POST',
|
||||
headers: getRequestHeaders(),
|
||||
body: JSON.stringify({
|
||||
|
Reference in New Issue
Block a user