@remit/backend 0.0.113 → 0.0.114
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/dev-server/server.ts +3 -4
- package/package.json +1 -1
package/dev-server/server.ts
CHANGED
|
@@ -97,11 +97,10 @@ if (isSelfHostBackend) {
|
|
|
97
97
|
},
|
|
98
98
|
);
|
|
99
99
|
|
|
100
|
-
const { createAuth, resolveAuthConfig, toNodeHandler } =
|
|
101
|
-
"@remit/auth-service"
|
|
102
|
-
);
|
|
100
|
+
const { createAuth, resolveAuthConfig, toNodeHandler, withRateLimitLogging } =
|
|
101
|
+
await import("@remit/auth-service");
|
|
103
102
|
const auth = await createAuth(resolveAuthConfig());
|
|
104
|
-
app.all(/^\/api\/auth\//, toNodeHandler(auth));
|
|
103
|
+
app.all(/^\/api\/auth\//, toNodeHandler(withRateLimitLogging(auth)));
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
// Ahead of the body parsers, not after them: a body refused for its size never
|