fixed json

This commit is contained in:
dqriakh 2024-05-30 18:29:26 +03:00
parent 95373069da
commit c95a00fb19

View File

@ -2,19 +2,19 @@ const { response } = require('express');
const router = require('express').Router();
router.get('/tests-data', (request, response) => {
response.send(require('../json/tests-data/success.json'))
response.send(require('./json/tests-data/success.json'))
})
router.get("/users-data", (request, response) => {
response.send(require("../json/users-data/success.json"))
response.send(require("./json/users-data/success.json"))
})
router.get('/results-data', (request, response) => {
response.send(require('../json/results-data/results.json'))
response.send(require('./json/results-data/results.json'))
})
router.get('/records-data', (request, response) => {
response.send(require('../json/records-data/records.json'))
response.send(require('./json/records-data/records.json'))
})
router.post('/submit-enter', (request, response) => {