Files
Sheep-Service/api/routes/stand.routes.js
Rozenrod 3f08f3f6c9 Додана сторінка "Стенд"
Додане повідомлення про оновлення застосунку
Оновлен Service Worker
Перероблен WebSocket APІ
2025-10-19 00:55:30 +03:00

29 lines
854 B
JavaScript

const express = require('express');
const router = express.Router();
const StandController = require('../controllers/stand.controller');
const authenticate = require("../middleware/auth");
router
.route('/list')
.get(authenticate, StandController.getList)
.post(authenticate, StandController.createStand);
router
.route('/:stand_id')
.get(authenticate, StandController.getStand)
.put(authenticate, StandController.updateStand)
.delete(authenticate, StandController.deleteStand);
router
.route('/schedule/list/:stand_id')
.get(authenticate, StandController.getScheduleList)
router
.route('/schedule/:stand_id')
.post(authenticate, StandController.createSchedule)
router
.route('/schedule/history/:stand_schedule_id')
.post(authenticate, StandController.getScheduleHistory)
module.exports = router;