Add ping endpoint

This commit is contained in:
Cohee 2024-05-07 01:27:17 +03:00
parent 542018cecb
commit 4a70e68c22

View File

@ -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'));