assemble/server/public.js

13 lines
262 B
JavaScript
Raw Normal View History

2024-01-28 03:31:08 +03:00
const express = require("express");
const {resolve} = require("node:path");
const {app} = require("./http");
app.use(
express.static(
resolve(__dirname,"../public"),
{
acceptRanges: true,
etag: true
}
)
);