* almost ready to release
This commit is contained in:
@@ -87,14 +87,18 @@ export async function applyContract(contractID, prefRole, userName, userPhone, u
|
||||
}
|
||||
|
||||
export async function misapply(contractID) {
|
||||
return HttpClient.post('/contract/' + contractID + '/misapply', {
|
||||
id : contractID,
|
||||
email : store.state.keycloak.keycloak.tokenParsed.email
|
||||
}, {
|
||||
headers: {
|
||||
Authorization: 'Bearer ' + store.state.keycloak.keycloak.token
|
||||
return HttpClient.post(
|
||||
'/contract/' + contractID + '/misapply',
|
||||
{
|
||||
id: contractID,
|
||||
email: store.state.keycloak.keycloak.tokenParsed.email
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
Authorization: 'Bearer ' + store.state.keycloak.keycloak.token
|
||||
}
|
||||
}
|
||||
})
|
||||
)
|
||||
.then(resp => {
|
||||
//TODO: send also auth token with request
|
||||
return resp.data
|
||||
@@ -205,3 +209,25 @@ export async function getAmountOfStatuses(token) {
|
||||
router.push('/error?message=' + error.message + '&code=' + error.code)
|
||||
})
|
||||
}
|
||||
|
||||
export async function setupContract(conractId, data) {
|
||||
return HttpClient.put(
|
||||
'/contract/' + conractId + '/setup',
|
||||
{
|
||||
data
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
Authorization: 'Bearer ' + store.state.keycloak.keycloak.token
|
||||
}
|
||||
}
|
||||
)
|
||||
.then(resp => {
|
||||
//TODO: send also auth token with request
|
||||
return resp.data
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error)
|
||||
router.push('/error?message=' + error.message + '&code=' + error.code)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user