|
|
|
@ -9,8 +9,8 @@ export const createApp = () => { |
|
|
|
|
app.use(bodyParser.urlencoded({ extended: true })); |
|
|
|
|
|
|
|
|
|
app.use("/", createProgressiveForm(mainPageHandler)); |
|
|
|
|
app.use("/frontend", express.static(path.join(import.meta.dirname, "..", "frontend"))); |
|
|
|
|
app.use("/shared", express.static(path.join(import.meta.dirname, "..", "shared"))); |
|
|
|
|
app.use("/frontend", express.static(path.join(import.meta.dirname, "..", "frontend"), { maxAge: 60_000 })); |
|
|
|
|
app.use("/shared", express.static(path.join(import.meta.dirname, "..", "shared"), { maxAge: 60_000 })); |
|
|
|
|
|
|
|
|
|
return app; |
|
|
|
|
}; |
|
|
|
|