move old to legacy folder

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-01-19 21:09:17 +03:00
parent 8a2afc3f1b
commit 270fe51500
289 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
const router = require('express').Router()
router.get('/gettopic/:topic/:section', (request, response) => {
const topic = request.params.topic
let section = request.params.section
if (!topic || !section) {
response.send(require('./error.json'))
} else {
response.send(
// require(`./${topic}/${section}.json`)
require(`./dynamic-programming/${section}.json`),
)
}
})
router.get('/gettopic/:topic', (request, response) => {
const topic = request.params.topic
if (!topic) {
response.send(require('./error.json'))
} else {
response.send(
// require(`./${topic}.json`)
require('./dynamic-programming.json'),
)
}
})
module.exports = router