mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-09 09:20:54 +00:00
style
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
74bf6c78eb
commit
0913cd19fc
@ -23,5 +23,7 @@ export function handle (req: string | null, serverEndpoint: string): { statusCod
|
||||
if (req === null) return { statusCode: 401, body: 'unauthorized' }
|
||||
const resp = handleRequest(JSON.parse(req), serverEndpoint)
|
||||
if (resp.error !== undefined) { return { statusCode: 401, body: '' } }
|
||||
return { statusCode: 200, body: JSON.stringify(resp.result) }
|
||||
return {
|
||||
statusCode: 200, body: JSON.stringify(resp.result)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user