multy-stub/.bzr/legacy/bushou/index.js
Primakov Alexandr Alexandrovich 270fe51500 move old to legacy folder
2025-01-19 21:13:33 +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