Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RegisterPayload {
- constructor(username, password) {
- this.username = username;
- this.password = password;
- }
- send(callback) {
- const httpr = new XMLHttpRequest();
- const url = VELOREN_AP + "/api/v1/register";
- httpr.open("POST", url);
- httpr.send(JSON.stringify(this));
- httpr.onreadystatechange((e) => callback(httpr));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement