Migrate to json-server stable version
This commit is contained in:
parent
d1cabdb58c
commit
39d62ddc8d
2857
package-lock.json
generated
2857
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -17,7 +17,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"http-server": "14.1.1",
|
||||
"json-server": "1.0.0-beta.3",
|
||||
"json-server": "0.17.4",
|
||||
"vite": "5.4.8",
|
||||
"npm-run-all": "4.1.5",
|
||||
"eslint": "8.57.1",
|
||||
|
@ -58,7 +58,7 @@
|
||||
<script type="module">
|
||||
const getStudents = async () => {
|
||||
const students = document.getElementById("students");
|
||||
const response = await fetch("http://localhost:3001/students?_embed=group");
|
||||
const response = await fetch("http://localhost:3001/students?_expand=group");
|
||||
const data = await response.json();
|
||||
data.forEach(element => {
|
||||
const createTd = (value) => {
|
||||
|
Loading…
Reference in New Issue
Block a user