Files
services/routes/subscribe.js
T

10 lines
362 B
JavaScript
Raw Normal View History

2026-05-26 13:37:55 +08:00
const Router = require('koa-router')
const router = new Router()
const { bindOpenId, notifyOrder } = require('../controllers/subscribe')
2026-06-03 14:15:55 +08:00
const { requireAuth, requireStaffAuth } = require('../middleware/auth')
2026-05-26 13:37:55 +08:00
2026-06-03 14:15:55 +08:00
router.post('/bind-openid', requireAuth(), bindOpenId)
router.post('/orders/notify', requireStaffAuth(), notifyOrder)
2026-05-26 13:37:55 +08:00
module.exports = router.routes()