fix linting
This commit is contained in:
parent
098818b205
commit
72d103edaf
@ -1,6 +1,6 @@
|
||||
import { createHash } from "crypto";
|
||||
import path from 'path';
|
||||
import url from 'url';
|
||||
import path from "path";
|
||||
import url from "url";
|
||||
import * as fs from "fs";
|
||||
|
||||
import { getUsedResources, requestPVE } from "./pve.js";
|
||||
@ -136,7 +136,7 @@ export function recursiveImport (router, baseroute, target, from = import.meta.u
|
||||
files.forEach((file) => {
|
||||
if (file.endsWith(".js")) {
|
||||
const path = `./${importPath}/${file}`;
|
||||
const route = `${baseroute}/${file.replace(".js", "")}`
|
||||
const route = `${baseroute}/${file.replace(".js", "")}`;
|
||||
import(path).then((module) => {
|
||||
router.use(route, module.router);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user