Aktualisiere Importe auf Node.js-Module und passe .gitignore an

This commit is contained in:
2025-03-15 16:26:59 +01:00
parent 8554cdb396
commit 2f6f833549
5 changed files with 13 additions and 11 deletions

View File

@ -1,7 +1,7 @@
import http, { IncomingMessage, ServerResponse } from "http";
import { URL } from "url";
import { Buffer } from "buffer";
import querystring from "querystring";
import http, { IncomingMessage, ServerResponse } from "node:http";
import { URL } from "node:url";
import { Buffer } from "node:buffer";
import querystring from "node:querystring";
import Router from "./router.js";
import Tpl from "./template.js";

View File

@ -1,9 +1,9 @@
import fs from "fs";
import path from "path";
import fs from "node:fs";
import path from "node:path";
import Tpl from "./template.js";
import { Request } from "./index.js";
import { ServerResponse } from "http";
import { ServerResponse } from "node:http";
type RouteCallback = (req: Request, res: ServerResponse) => void;

View File

@ -1,5 +1,5 @@
import fs from "fs";
import path from "path";
import fs from "node:fs";
import path from "node:path";
export default class Template {
private views: string;