Skip to content

Commit

Permalink
fix: add static content middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed May 18, 2023
1 parent e3feb6c commit 28e1593
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const app = express();

const server = createServer(app);

app.use("/", express.static("public"));

nodered.init(server, settings);

app.use(settings.httpAdminRoot as string, nodered.httpAdmin);
Expand Down

0 comments on commit 28e1593

Please sign in to comment.