17 lines
186 B
Go
17 lines
186 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
engine := gin.Default()
|
||
|
|
||
|
engine.GET("/status")
|
||
|
engine.POST("/operate")
|
||
|
|
||
|
log.Fatal(engine.Run(":15678"))
|
||
|
}
|