nfflow/internal/handler/available.go
2024-03-29 18:05:09 +08:00

13 lines
262 B
Go

package handler
import (
"github.com/loveuer/nf"
"github.com/loveuer/nf/nft/resp"
"github.com/loveuer/nfflow/internal/opt"
"time"
)
func Available(c *nf.Ctx) error {
return resp.Resp200(c, nf.Map{"ok": true, "time": time.Now(), "version": opt.Version})
}