source: client_app/src/repository/edit_work_repo.js@ 6729ba5

Last change on this file since 6729ba5 was 6729ba5, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago

finished work edit

  • Property mode set to 100644
File size: 972 bytes
Line 
1import axios from '../custom_axios/axios';
2
3const WorkEdit = {
4 jobEdit: (jobId, title, description, accId, salary) => {
5 return axios.post("/edit/work/job/" + jobId, {
6 "title": title,
7 "description": description,
8 "accountId": accId,
9 "salary": salary
10 });
11 },
12 projectEdit: (projectId, title, description, accId, salary) => {
13 return axios.post("/edit/work/project/" + projectId, {
14 "title": title,
15 "description": description,
16 "accountId": accId,
17 "salary": salary
18 });
19 },
20 internshipEdit: (internshipId, title, description, accId, salary, openSpots) => {
21 return axios.post("/edit/work/internship/" + internshipId, {
22 "title": title,
23 "description": description,
24 "accountId": accId,
25 "salary": salary,
26 "openSpots": openSpots
27 });
28 }
29}
30
31export default WorkEdit;
Note: See TracBrowser for help on using the repository browser.