Downgrade css to prevent older browsers displaying faulty views
Sonarqube Scanner / Build and analyze (push) Failing after 1m36s
Sonarqube Scanner / Build and analyze (push) Failing after 1m36s
This commit is contained in:
@@ -32,6 +32,13 @@ function sendFileResource(res, file, contentType = null) {
|
||||
export function createApiRouter(db) {
|
||||
const api = Router();
|
||||
|
||||
api.use((req, res, next) => {
|
||||
res.setHeader('Cache-Control', 'no-cache, no-store, must-revalidate');
|
||||
res.setHeader('Pragma', 'no-cache');
|
||||
res.setHeader('Expires', '0');
|
||||
next();
|
||||
});
|
||||
|
||||
api.get('/health', (req, res) => {
|
||||
const sqliteVersion = db.prepare('SELECT sqlite_version() AS version').get().version;
|
||||
res.json({
|
||||
|
||||
Reference in New Issue
Block a user