You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
142 B

  1. package api
  2. import (
  3. "net/http"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func (a *API) getState(c *gin.Context) {
  7. c.JSON(http.StatusOK, a.status)
  8. }