|
|
@ -9,7 +9,6 @@ import publishRoute from "./routes/publish.js"; |
|
|
import {ViewSync} from "./inc/view-sync.js"; |
|
|
import {ViewSync} from "./inc/view-sync.js"; |
|
|
import {previewFiles, staticFiles} from "./routes/static-files.js"; |
|
|
import {previewFiles, staticFiles} from "./routes/static-files.js"; |
|
|
import {setupWatcher} from "./inc/changes-watcher.js"; |
|
|
import {setupWatcher} from "./inc/changes-watcher.js"; |
|
|
import {setHeaders} from "./inc/headers-middleware.js"; |
|
|
|
|
|
|
|
|
|
|
|
const {expressApp, httpServer} = init(); |
|
|
const {expressApp, httpServer} = init(); |
|
|
|
|
|
|
|
|
@ -23,7 +22,7 @@ httpServer.listen(PORT, '0.0.0.0', () => { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
// Middleware
|
|
|
// Middleware
|
|
|
expressApp.use(setHeaders); |
|
|
// expressApp.use(setHeaders);
|
|
|
|
|
|
|
|
|
// Routes
|
|
|
// Routes
|
|
|
expressApp.get('/', index); |
|
|
expressApp.get('/', index); |
|
|
|