2026-04-17 23:11:57 +08:00
|
|
|
import Router from '@koa/router'
|
2026-04-21 12:35:48 +08:00
|
|
|
import * as ctrl from '../../controllers/hermes/codex-auth'
|
2026-04-17 23:11:57 +08:00
|
|
|
|
|
|
|
|
export const codexAuthRoutes = new Router()
|
|
|
|
|
|
2026-04-21 12:35:48 +08:00
|
|
|
codexAuthRoutes.post('/api/hermes/auth/codex/start', ctrl.start)
|
|
|
|
|
codexAuthRoutes.get('/api/hermes/auth/codex/poll/:sessionId', ctrl.poll)
|
|
|
|
|
codexAuthRoutes.get('/api/hermes/auth/codex/status', ctrl.status)
|