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
|
|
|
|
}
|
|
|
|
)
|
2024-01-28 04:03:41 +03:00
|
|
|
);
|
|
|
|
|
|
|
|
app.get("*",function(request, response){
|
|
|
|
response.sendFile(resolve(__dirname,"../public/index.html"))
|
|
|
|
})
|