Rename exozyme API from new to api
This commit is contained in:
parent
12ee102f09
commit
2b64699de2
1 changed files with 2 additions and 1 deletions
|
@ -1,10 +1,11 @@
|
|||
const url = 'https://exozy.me/new/'
|
||||
const url = 'https://exozy.me/api/'
|
||||
const form = document.querySelector('form')
|
||||
|
||||
form.addEventListener('submit', (e) => {
|
||||
e.preventDefault()
|
||||
|
||||
const data = new Object()
|
||||
data['type'] = 'new'
|
||||
|
||||
for (const s of ['code', 'firstname', 'lastname', 'email', 'username', 'password']) {
|
||||
data[s] = document.getElementsByName(s)[0].value
|
||||
|
|
Reference in a new issue