mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-20 21:41:32 +01:00
Add ping endpoint
This commit is contained in:
parent
542018cecb
commit
4a70e68c22
@ -283,6 +283,7 @@ app.use('/api/users', require('./src/endpoints/users-public').router);
|
||||
|
||||
// Everything below this line requires authentication
|
||||
app.use(userModule.requireLoginMiddleware);
|
||||
app.get('/api/ping', (_, response) => response.sendStatus(204));
|
||||
|
||||
// File uploads
|
||||
app.use(multer({ dest: UPLOADS_PATH, limits: { fieldSize: 10 * 1024 * 1024 } }).single('avatar'));
|
||||
|
Loading…
Reference in New Issue
Block a user