badmfck-api-server 1.2.9 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,7 +50,7 @@ class BaseEndpoint {
50
50
  async execute(req) {
51
51
  if (this.endpoints && this.endpoints.length > 0) {
52
52
  for (let i of this.endpoints) {
53
- if (i.endpoint === req.endpoint)
53
+ if (BaseEndpoint.entrypoint + i.endpoint === req.endpoint)
54
54
  return i.handler(req);
55
55
  }
56
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "1.2.9",
3
+ "version": "1.3.0",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",