1 | import axios from '../custom_axios/axios';
|
---|
2 |
|
---|
3 | const 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 |
|
---|
38 | export default WorkRegister; |
---|