You've already forked factorio-server-manager
mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-12-03 23:20:28 +02:00
16 lines
441 B
JavaScript
16 lines
441 B
JavaScript
import client from "../client";
|
|
|
|
export default {
|
|
status: async () => {
|
|
const response = await client.get('/api/user/status');
|
|
return response.data;
|
|
},
|
|
login: async data => {
|
|
const response = await client.post('/api/login', JSON.stringify(data));
|
|
return response.data;
|
|
},
|
|
logout: async () => {
|
|
const response = await client.get('/api/logout');
|
|
return response.data;
|
|
}
|
|
} |