source: client_app/src/repository/work_register_repo.js@ 4302312

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

work register

  • Property mode set to 100644
File size: 1.2 KB
Line 
1import axios from '../custom_axios/axios';
2
3const WorkRegister = {
4 jobRegister: (title, description, accId, salary, accType, skillsRequired) => {
5 return axios.post("/register/work/job", {
6 "title": title,
7 "description": description,
8 "accountId": accId,
9 "salary": salary,
10 "type": accType,
11 "skillsRequired": skillsRequired
12 });
13 },
14 internshipRegister:(title, description, accId, salary, accType, openSpots, skillsTrained) => {
15 return axios.post("/register/work/internship",{
16 "title": title,
17 "description": description,
18 "accountId": accId,
19 "salary": salary,
20 "type": accType,
21 "openSpots": openSpots,
22 "skillsTrained": skillsTrained
23 });
24 },
25 projectRegister:(title, description, accId, salary, accType, validUntil, skillsRequired) => {
26 return axios.post("/register/work/project",{
27 "title": title,
28 "description": description,
29 "accountId": accId,
30 "salary": salary,
31 "type": accType,
32 "validUntil": validUntil,
33 "skillsRequired": skillsRequired
34 });
35 },
36}
37
38export default WorkRegister;
Note: See TracBrowser for help on using the repository browser.