Only allow POST requests to ping endpoint
This commit is contained in:
+1
-1
@@ -231,7 +231,7 @@ app.use('/api/users', usersPublicRouter);
|
||||
|
||||
// Everything below this line requires authentication
|
||||
app.use(requireLoginMiddleware);
|
||||
app.use('/api/ping', (request, response) => {
|
||||
app.post('/api/ping', (request, response) => {
|
||||
if (request.query.extend && request.session) {
|
||||
request.session.touch = Date.now();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user