mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(core): Allow dotfiles in sendFile to fix WorkFlow settings 404 error (#14744)
This commit is contained in:
committed by
GitHub
parent
1e5b90571d
commit
7928a9b3c2
@@ -234,7 +234,9 @@ export class Server extends AbstractServer {
|
||||
|
||||
// Returns all the available timezones
|
||||
const tzDataFile = resolve(CLI_DIR, 'dist/timezones.json');
|
||||
this.app.get(`/${this.restEndpoint}/options/timezones`, (_, res) => res.sendFile(tzDataFile));
|
||||
this.app.get(`/${this.restEndpoint}/options/timezones`, (_, res) =>
|
||||
res.sendFile(tzDataFile, { dotfiles: 'allow' }),
|
||||
);
|
||||
|
||||
// ----------------------------------------
|
||||
// Settings
|
||||
|
||||
Reference in New Issue
Block a user