19 lines
232 B
Go
19 lines
232 B
Go
|
package api
|
||
|
|
||
|
import (
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
type scaleApi struct{}
|
||
|
|
||
|
func ScaleApi() *scaleApi {
|
||
|
return &scaleApi{}
|
||
|
}
|
||
|
|
||
|
func (scaleApi) Test(ctx *gin.Context) {
|
||
|
ctx.JSON(200, gin.H{
|
||
|
"message": "drone-Test",
|
||
|
})
|
||
|
return
|
||
|
}
|