mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-22 21:07:42 +08:00
change: add server ext
This commit is contained in:
16
server/ext/main.go
Normal file
16
server/ext/main.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package server_ext
|
||||
|
||||
import (
|
||||
"github.com/httprunner/httprunner/v5/server"
|
||||
)
|
||||
|
||||
func NewExtRouter() *server.Router {
|
||||
router := server.NewRouter()
|
||||
apiV1PlatformSerial := router.Group("/api/v1").Group("/:platform").Group("/:serial")
|
||||
|
||||
apiV1PlatformSerial.GET("/stub/source", sourceHandler)
|
||||
apiV1PlatformSerial.POST("/stub/login", loginHandler)
|
||||
apiV1PlatformSerial.POST("/stub/logout", logoutHandler)
|
||||
apiV1PlatformSerial.POST("/app/install", installAppHandler)
|
||||
return router
|
||||
}
|
||||
Reference in New Issue
Block a user