init from origin + update

This commit is contained in:
2023-08-01 13:14:02 +03:00
commit 321dc4c3c5
1109 changed files with 16019 additions and 0 deletions
+30
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