burger-api 0.0.35 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/core/router.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { readdirSync } from "fs";
|
|
3
3
|
import * as path from "path";
|
|
4
4
|
// Import utils
|
|
5
|
-
import { cleanPrefix, normalizePath } from "
|
|
5
|
+
import { cleanPrefix, normalizePath } from "../utils/index.js";
|
|
6
6
|
/**
|
|
7
7
|
* Router class for handling file-based routing.
|
|
8
8
|
* Loads routes from a directory structure and matches requests to the appropriate route handlers.
|
package/dist/src/core/server.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { HttpRequest } from "./request.js";
|
|
3
3
|
import { HttpResponse } from "./response.js";
|
|
4
4
|
// Import stuff from utils
|
|
5
|
-
import { errorResponse } from "
|
|
5
|
+
import { errorResponse } from "../utils/error.js";
|
|
6
6
|
export class Server {
|
|
7
7
|
options;
|
|
8
8
|
server = null;
|