6 lines
289 B
TypeScript
6 lines
289 B
TypeScript
export const startApp = (name: string) => fetch(`/api/apps/${name}/start`, { method: 'POST' })
|
|
|
|
export const stopApp = (name: string) => fetch(`/api/apps/${name}/stop`, { method: 'POST' })
|
|
|
|
export const restartApp = (name: string) => fetch(`/api/apps/${name}/restart`, { method: 'POST' })
|