@certik/serverless-api 1.0.10 → 1.0.11
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/lib/routes.js +1 -1
- package/package.json +2 -2
package/lib/routes.js
CHANGED
|
@@ -9,7 +9,7 @@ export async function getRoutes(routeDirectory) {
|
|
|
9
9
|
const routesFromFiles = await Promise.all(
|
|
10
10
|
routeFiles.map(async (routeFile) => {
|
|
11
11
|
const routeFilePath = pathModule.join(routeDirectory, routeFile);
|
|
12
|
-
const route = await import(routeFilePath);
|
|
12
|
+
const route = await import(`file://${routeFilePath}`);
|
|
13
13
|
const routeName = pathModule.basename(routeFile, ".js");
|
|
14
14
|
const methods = route.methods || ["GET"];
|
|
15
15
|
const environmentVariables = route.environmentVariables || [];
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"author": "CertiK Engineering",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.11",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"start": "doppler run -- nodemon start-dev.js",
|
|
10
10
|
"lint": "eslint lib test routes *.js",
|
|
@@ -60,4 +60,4 @@
|
|
|
60
60
|
],
|
|
61
61
|
"ext": "js json"
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
}
|