disable caching for the /status api route

This commit is contained in:
Matteo Pagliazzi
2020-04-16 17:17:17 +02:00
parent bf492933cc
commit f757e645b7

View File

@@ -1,3 +1,7 @@
import {
disableCache,
} from '../../middlewares/cache';
const api = {};
/**
@@ -15,6 +19,8 @@ const api = {};
api.getStatus = {
method: 'GET',
url: '/status',
// explicitly disable caching so that the server is always checked
middlewares: [disableCache],
async handler (req, res) {
res.respond(200, {
status: 'up',