13 lines
262 B
Go
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})
|
||
|
}
|