Enabled restarting your application from denied state
Some checks failed
Continuous Deployment / Update Deployment (push) Failing after 1m23s
Some checks failed
Continuous Deployment / Update Deployment (push) Failing after 1m23s
This commit is contained in:
@@ -136,4 +136,15 @@ export async function denyApplication(id: Number) {
|
||||
if (!res.ok) {
|
||||
console.error("Something went wrong denying the application")
|
||||
}
|
||||
}
|
||||
|
||||
export async function restartApplication() {
|
||||
const res = await fetch(`${addr}/application/restart`, {
|
||||
method: 'POST',
|
||||
credentials: 'include'
|
||||
})
|
||||
|
||||
if (!res.ok) {
|
||||
console.error("Something went wrong restarting your application")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user