From 2db01f3d5caacfb8d3c558fb6aaaa2ebed843ea7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 13 Jul 2018 23:39:20 +0900 Subject: [PATCH] Clean up --- src/server/api/call.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/server/api/call.ts b/src/server/api/call.ts index 255ae61ad..73931ac7d 100644 --- a/src/server/api/call.ts +++ b/src/server/api/call.ts @@ -9,10 +9,6 @@ export default (endpoint: string | Endpoint, user: IUser, app: IApp, data: any, const epName = typeof endpoint === 'string' ? endpoint : endpoint.name; const ep = endpoints.find(e => e.name === epName); - if (ep.name.includes('.')) { - return rej('INVALID_ENDPOINT'); - } - if (ep.secure && !isSecure) { return rej('ACCESS_DENIED'); }