Skip to content
Snippets Groups Projects
Commit e32bf348 authored by syuilo's avatar syuilo
Browse files

Update call.ts

parent 94ff2164
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,10 @@ export default (endpoint: string | Endpoint, user: IUser, app: IApp, data: any,
const ep = typeof endpoint == 'string' ? endpoints.find(e => e.name == endpoint) : endpoint;
if (ep.name.includes('.') {
return rej('INVALID_ENDPOINT');
}
if (ep.secure && !isSecure) {
return rej('ACCESS_DENIED');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment