CI: tarpaulin env var

This commit is contained in:
realaravinth
2021-04-02 11:28:11 +05:30
parent e83ed3d8ea
commit 584d43c34a
5 changed files with 217 additions and 176 deletions

View File

@@ -48,7 +48,7 @@
</div>
</div>
<script>
export const SUBMIT = '/';
export const SUBMIT = '/api/v1/signup';
export const isBlankString = (event, value, field) => {
if (!value.replace(/\s/g, '').length) {
@@ -77,8 +77,16 @@
let payload = {
username,
password
}
fetch(SUBMIT, genJsonPayload(payload)).then(resp => {
if (resp.ok) {
aslert('signed in');
} else {
resp.json().then(err => alert(`Error ${resp.error}`));
}
});
};
let form = document.getElementById('form');