dhs-testing stubs #7

Merged
dqriakh merged 2 commits from dhs-testing into master 2024-05-30 18:51:51 +03:00
Showing only changes of commit c95a00fb19 - Show all commits

View File

@ -2,19 +2,19 @@ const { response } = require('express');
const router = require('express').Router(); const router = require('express').Router();
router.get('/tests-data', (request, response) => { 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) => { 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) => { 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) => { 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) => { router.post('/submit-enter', (request, response) => {