Backend Test Java Spring
This commit is contained in:
Generated
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptLibraryMappings">
|
||||
<includedPredefinedLibrary name="Node.js Core" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -14,13 +14,19 @@ const inter = Inter({subsets: ['latin']})
|
||||
export default function Home(p) {
|
||||
|
||||
|
||||
const url = "http://localhost:8080/weeks"
|
||||
|
||||
|
||||
return (
|
||||
|
||||
<>
|
||||
<div style={{height: 50}}></div>
|
||||
<CalenderView/>
|
||||
|
||||
<Button onClick={() => {
|
||||
fetch(url + "?id=1", {method: "GET"}).then(response => response.json()).then(json => {
|
||||
console.log(json.days[1].text)
|
||||
});
|
||||
}} text={"Fetch"}/>
|
||||
</>
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user