badmfck-api-server 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -128,7 +128,8 @@ class APIService extends BaseService_1.BaseService {
128
128
  if (!i.endpoints)
129
129
  continue;
130
130
  for (let j of i.endpoints) {
131
- const ep = BaseEndpoint_1.BaseEndpoint.getEntryPoint() + j.endpoint;
131
+ let ep = BaseEndpoint_1.BaseEndpoint.getEntryPoint() + j.endpoint;
132
+ ep = ep.replaceAll("//", "/");
132
133
  app.all(ep, async (req, res) => {
133
134
  const tme = +new Date();
134
135
  let log = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",