mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-15 12:40:00 -04:00
Add libcurl
This commit is contained in:
parent
c5e05997dd
commit
bf24bf53c0
4 changed files with 17 additions and 18 deletions
|
@ -123,7 +123,14 @@ async function MasqFail(req: Request, res: Response) {
|
|||
return;
|
||||
}) */
|
||||
|
||||
app.use(express.static("dist"));
|
||||
app.use(express.static("dist", {
|
||||
//force .cjs files to be served as text/javascript (libcurl)
|
||||
setHeaders: (res, path) => {
|
||||
if (path.endsWith(".cjs")) {
|
||||
res.setHeader("Content-Type", "text/javascript");
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
||||
app.get("/search=:query", async (req: Request, res: Response) => {
|
||||
const { query } = req.params;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue