更新完善页面

This commit is contained in:
董海洋
2026-06-03 14:15:55 +08:00
parent 4b7ae9c933
commit 1675662537
57 changed files with 7625 additions and 883 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
const Router = require('koa-router')
const router = new Router()
const { bindOpenId, notifyOrder } = require('../controllers/subscribe')
const { requireAuth, requireStaffAuth } = require('../middleware/auth')
router.post('/bind-openid', bindOpenId)
router.post('/orders/notify', notifyOrder)
router.post('/bind-openid', requireAuth(), bindOpenId)
router.post('/orders/notify', requireStaffAuth(), notifyOrder)
module.exports = router.routes()