generated from mirzaev/pot
transition from site-mirzaev
This commit is contained in:
26
mirzaev/site/account/system/public/js/account.js
Normal file
26
mirzaev/site/account/system/public/js/account.js
Normal file
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
|
||||
class account {
|
||||
static async initialization() {
|
||||
// Запрос
|
||||
return fetch('https://auth.mirzaev.sexy/account/initialization', {
|
||||
method: 'GET'
|
||||
});
|
||||
}
|
||||
|
||||
static authentication() {
|
||||
// Инициализация аккаунта
|
||||
alert(1);
|
||||
this.initialization()
|
||||
.then(
|
||||
(response) => {
|
||||
alert(2);
|
||||
}
|
||||
);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static deauthentication() {
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user