notificationserver/core/publicfolder.js

13 lines
283 B
JavaScript
Raw Permalink Normal View History

2024-10-24 10:46:40 +03:00
import {Application} from "./http.js";
import express from "express";
import {resolve} from "node:path";
Application.use(
express.static(
resolve(import.meta.dirname,"../public"),
{
acceptRanges: true,
index: "main.html"
}
)
)