We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let reply = await r.subrequest('/auth' , { method: 'POST', body: JSON.stringify({ username: "test", password: "test" })},); let response = JSON.parse((reply.responseBody)); let token = response['token']; if (!token) { throw new Error("Failed to retrieve token from authentication endpoint"); } var subrequestHeaders = { "Authorization": "Bearer " + token, "Content-Type": "application/json" }; let backend_reply = await r.subrequest('/api/users', { headers: subrequestHeaders }); r.return(backend_reply.status, JSON.stringify(backend_reply)); }catch (e) { r.return(500, e); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: