Migrate to json-server stable version

This commit is contained in:
Aleksey Filippov 2024-11-06 17:01:24 +04:00
parent d1cabdb58c
commit 39d62ddc8d
3 changed files with 1948 additions and 923 deletions

2867
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -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) => {