Skip to content

Commit 9565987

Browse files
committed
fix: cli-preview route
1 parent 77f4ed3 commit 9565987

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cmd/server/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ func main() {
113113
apiGroup.GET("/system/usage", systemHandler.GetUsage)
114114
apiGroup.GET("/system/history", systemHandler.GetHistory)
115115

116+
// Command preview
117+
commandHandler := api.NewCommandHandler(ffmpegService)
118+
apiGroup.POST("/command/preview", commandHandler.PreviewCommand)
119+
116120
// WebSocket
117121
apiGroup.GET("/ws/progress", wsHandler.HandleWebSocket)
118122
}

0 commit comments

Comments
 (0)