mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
disable caching for the /status api route
This commit is contained in:
parent
bf492933cc
commit
f757e645b7
1 changed files with 6 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue