Skip to content

Commit

Permalink
feat: add test-deploy api
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-zuo committed Jun 26, 2023
1 parent 73bca14 commit fd4421a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ app.use(async (ctx, next) => {
// 连接 mongodb,初始化 db
mongodbCore.init({ dbName: 'zuo-config' });

router.get('/share/test-deploy', async (ctx) => {
ctx.body = {
code: 0,
data: {
test: '新接口自动化部署成功'
},
msg: '成功'
}
})
// 配置中心对外接口,暂时不需要鉴权(前端直接可以调用,不用登录)
router.get('/share/shortLink/list', async (ctx) => {
console.log('ctx.query', ctx.query);
Expand Down

0 comments on commit fd4421a

Please sign in to comment.