mirror of
https://github.com/mijian1988/cameraToRtmp.git
synced 2025-10-05 21:06:49 +08:00
22 lines
380 B
Go
Executable File
22 lines
380 B
Go
Executable File
package main
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"net/http"
|
|
)
|
|
|
|
func main() {
|
|
router := gin.Default()
|
|
|
|
router.LoadHTMLFiles("index.html")
|
|
router.StaticFS("/strobe", http.Dir("./strobe"))
|
|
router.StaticFS("/favicon.ico", http.Dir("./favicon"))
|
|
router.GET("/", func(c *gin.Context) {
|
|
c.HTML(http.StatusOK, "index.html", gin.H{
|
|
})
|
|
})
|
|
|
|
|
|
router.Run("192.168.0.107:8080")
|
|
}
|