feat: init
This commit is contained in:
8
frontend/src/api.js
Normal file
8
frontend/src/api.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import axios from 'axios';
|
||||
|
||||
const API_URL = 'http://localhost:3001/api';
|
||||
|
||||
export async function getServices() {
|
||||
const response = await axios.get(`${API_URL}/services`);
|
||||
return response.data;
|
||||
}
|
||||
Reference in New Issue
Block a user