From 1bd1d2b279fdc8acc116123d022b971e687b2243 Mon Sep 17 00:00:00 2001 From: Rushan Sitdikov Date: Mon, 3 Jun 2024 23:26:23 +0300 Subject: [PATCH] school-stage stubs --- server/routers/school-stage/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/routers/school-stage/index.js b/server/routers/school-stage/index.js index ae5b309..6641501 100644 --- a/server/routers/school-stage/index.js +++ b/server/routers/school-stage/index.js @@ -16,11 +16,11 @@ router.post('/login', (request, response) => { const router = require('express').Router(); router.get('/teachers', (request, response) => { - response.send(require('../json/teachers/success.json')) + response.send(require('./json/teachers/success.json')) }) router.get('/account', (request, response) => { - response.send(require('../json/account/account.json')) + response.send(require('./json/account/account.json')) }) router.post('/login', (request, response) => { @@ -28,7 +28,7 @@ router.post('/login', (request, response) => { const password = request.body.password; try { - const users = require('../json/account/account.json'); + const users = require('./json/account/account.json'); const user = users.data.find(user => user.login === login && user.password === password); if (!user) {