13 lines
262 B
JavaScript
13 lines
262 B
JavaScript
|
const express = require("express");
|
||
|
const {resolve} = require("node:path");
|
||
|
const {app} = require("./http");
|
||
|
|
||
|
app.use(
|
||
|
express.static(
|
||
|
resolve(__dirname,"../public"),
|
||
|
{
|
||
|
acceptRanges: true,
|
||
|
etag: true
|
||
|
}
|
||
|
)
|
||
|
);
|