Changed User View and Ticket View
This commit is contained in:
1 parent
3d9f4dfda0
commit
cf8b470a20
6 files changed
+43
-17
No files matched your search
@@ -28,6 +28,11 @@ const APP_VERSION = pkg.version || '0.0.0';
|
||||
app.use(cors());
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded({ extended: false }));
|
||||
// Never cache version.js — ensures auto cache-busting works
|
||||
app.get('/version.js', (req, res, next) => {
|
||||
res.set('Cache-Control', 'no-store, no-cache, must-revalidate');
|
||||
next();
|
||||
});
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
app.use('/assets', express.static(path.join(__dirname, 'assets')));
|
||||
|
||||
@@ -304,6 +309,7 @@ app.get('/api/categories', (_req, res) => {
|
||||
|
||||
// GET app version
|
||||
app.get('/api/version', (_req, res) => {
|
||||
res.set('Cache-Control', 'no-store');
|
||||
res.json({ version: APP_VERSION });
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user