multy-stub/server/routers/old/bushou/index.js
Primakov Alexandr Alexandrovich 4b0d9b4dbc mongoose + tests
2024-10-16 11:06:23 +03:00

14 lines
450 B
JavaScript

const router = require('express').Router()
router.get('/radicals', (req, res) => res.send(require('./radicals/success.json')))
router.get('/episodes', (req, res) => res.send(require('./episodes/success.json')))
router.get('/tokenize', (req, res) => res.send(require('./tokenize/success.json')))
router.get('/images/:name', (req, res) => {
res.sendFile(`${__dirname}/images/${encodeURIComponent(req.params.name)}`)
})
module.exports = router