Skip to content

Commit

Permalink
Use URL from configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
slashblog committed Jul 24, 2024
1 parent 0c93adb commit 329518a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ func main() {

router := gin.Default()
router.Static("/", htmldir)
router.POST("/stream", createStream(config, &streaming, &pid))
router.DELETE("/stream", deleteStream(&streaming, &pid))
router.POST(config.Url, createStream(config, &streaming, &pid))
router.DELETE(config.Url, deleteStream(&streaming, &pid))
router.Run(fmt.Sprintf("0.0.0.0:%d", config.Port))
} else if executeCommand.Happened() {
startExecuting(*v, *a, *s)
Expand Down

0 comments on commit 329518a

Please sign in to comment.