Last change
on this file since 580ba1a was 580ba1a, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago |
register and edit
|
-
Property mode
set to
100644
|
File size:
991 bytes
|
Rev | Line | |
---|
[580ba1a] | 1 | import axios from '../custom_axios/axios';
|
---|
| 2 |
|
---|
| 3 | const AccountEdit = {
|
---|
| 4 | userEdit: (id, email, newEmail, name, surname, retainedSkills, skillsToLearn) => {
|
---|
| 5 | return axios.post("/edit/account/user/" + id + "/" + email, {
|
---|
| 6 | "email": newEmail,
|
---|
| 7 | "name": name,
|
---|
| 8 | "surname": surname,
|
---|
| 9 | "retainedSkills": retainedSkills,
|
---|
| 10 | "skillsToLearn": skillsToLearn
|
---|
| 11 | });
|
---|
| 12 | },
|
---|
| 13 | companyEdit: (id, email, newEmail, name, country, city, street) => {
|
---|
| 14 | return axios.post("/edit/account/company/" + id + "/" + email, {
|
---|
| 15 | "email": newEmail,
|
---|
| 16 | "name": name,
|
---|
| 17 | "country": country,
|
---|
| 18 | "city": city,
|
---|
| 19 | "street": street
|
---|
| 20 | });
|
---|
| 21 | },
|
---|
| 22 | teamEdit: (id, email, newEmail, name, members) => {
|
---|
| 23 | return axios.post("/edit/account/team/" + id + "/" + email, {
|
---|
| 24 | "email": newEmail,
|
---|
| 25 | "name": name,
|
---|
| 26 | "members": members
|
---|
| 27 | });
|
---|
| 28 | }
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | export default AccountEdit; |
---|
Note:
See
TracBrowser
for help on using the repository browser.