13 lines
283 B
JavaScript
13 lines
283 B
JavaScript
|
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"
|
||
|
}
|
||
|
)
|
||
|
)
|