feat: expose backend debug log endpoints

This commit is contained in:
2026-04-02 23:51:44 +08:00
parent 9ec25b94f1
commit 98839e9782
5 changed files with 36 additions and 2 deletions

View File

@@ -71,6 +71,9 @@ func SetupRouter() *gin.Engine {
if conf.IsDebugMode() {
debug := api.Group("/debug")
{
debug.GET("/logs", handler.DebugLogs)
debug.GET("/logs/download", handler.DebugLogsDownload)
debug.GET("/logs/ws", handler.DebugLogWS)
debug.GET("/ws/logs", handler.DebugLogWS)
}
}