This commit is contained in:
Jan Naahs
2020-06-20 23:31:05 +02:00
parent 07123eb03a
commit 774c40bfa5
13 changed files with 287 additions and 62 deletions

View File

@@ -9,4 +9,20 @@ export default {
const response = await client.get('/api/server/status');
return response.data;
},
stop: async () => {
const response = await client.post('/api/server/stop');
return response.data;
},
start: async (ip, port, savefile) => {
const response = await client.post('/api/server/start', {
bindip: ip,
savefile,
port
});
return response.data;
},
kill: async () => {
const response = await client.get('/api/server/kill');
return response.data;
}
}