badmfck-api-server 2.0.9 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -83,7 +83,7 @@ async function Initializer(services) {
83
83
  exports.Initializer = Initializer;
84
84
  class APIService extends BaseService_1.BaseService {
85
85
  static nextLogID = 0;
86
- version = "2.0.9";
86
+ version = "2.1.0";
87
87
  options;
88
88
  monitor;
89
89
  monitorIndexFile;
@@ -133,7 +133,9 @@ class APIService extends BaseService_1.BaseService {
133
133
  if (!i || !i.endpoints)
134
134
  continue;
135
135
  for (let j of i.endpoints) {
136
- if (j.endpoint === req.endpoint) {
136
+ let ep = BaseEndpoint_1.BaseEndpoint.getEntryPoint() + j.endpoint;
137
+ ep = ep.replaceAll("//", "/");
138
+ if (ep === req.endpoint) {
137
139
  return await i.execute(req);
138
140
  }
139
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "2.0.9",
3
+ "version": "2.1.0",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",