mbkauthe 4.6.0 → 4.6.1
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/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -65,10 +65,11 @@ async function checkVersion() {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
app.use(router);
|
|
69
|
+
|
|
68
70
|
if (process.env.test === "dev") {
|
|
69
71
|
console.log("[mbkauthe] Dev mode is enabled. Starting server in dev mode.");
|
|
70
72
|
const port = 5555;
|
|
71
|
-
app.use(router);
|
|
72
73
|
app.get(["/dashboard", "/home", "/"], (req, res) => {
|
|
73
74
|
return res.redirect("/mbkauthe/");
|
|
74
75
|
});
|
|
@@ -136,4 +137,4 @@ export {
|
|
|
136
137
|
} from "./lib/config/cookies.js";
|
|
137
138
|
export { hashPassword, hashApiToken } from "./lib/config/security.js";
|
|
138
139
|
export { mbkautheVar } from "#config.js";
|
|
139
|
-
export default
|
|
140
|
+
export default app;
|