init
This commit is contained in:
6
frontend/src/api.js
Normal file
6
frontend/src/api.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const BASE = '/api'
|
||||
|
||||
export async function fetchHealth() {
|
||||
const res = await fetch(`${BASE}/health`)
|
||||
return res.json()
|
||||
}
|
||||
Reference in New Issue
Block a user