patchman/server/api/endpoint/register.go

17 lines
280 B
Go
Raw Normal View History

package endpoint
import "github.com/gin-gonic/gin"
type Registration struct {
hostname string
publicKey string
}
func Register(c *gin.Context) {
var requestData Registration
if err := c.BindJSON(&requestData); err != nil {
c.JSON(400, gin.H{"error": err.Error()})
}
}