mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-07 21:31:48 +08:00
15 lines
249 B
JavaScript
15 lines
249 B
JavaScript
const registerAPI = function (app) {
|
|
app.get('/demo', async (req, res) => {
|
|
res.send({
|
|
des: 'get res'
|
|
})
|
|
})
|
|
|
|
app.post('/demo', async (req, res) => {
|
|
res.send({
|
|
des: 'post res'
|
|
})
|
|
})
|
|
}
|
|
|
|
module.exports = registerAPI |