Files
factorio-server-manager/ui/api/resources/user.js

12 lines
298 B
JavaScript
Raw Normal View History

2020-06-09 23:41:08 +02:00
import client from "../client";
export default {
status: async () => {
const response = await client.get('/api/user/status');
return response.data;
2020-06-10 15:15:00 +02:00
},
login: async data => {
const response = await client.post('/api/login');
return response.data;
2020-06-09 23:41:08 +02:00
}
}