Add build information to /info endpoint
This commit is contained in:
parent
1b5b3c9643
commit
49b9b1ead2
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ import (
|
|||
"github.com/abcum/fibre/mw"
|
||||
"github.com/abcum/surreal/db"
|
||||
"github.com/abcum/surreal/sql"
|
||||
"github.com/abcum/surreal/util/build"
|
||||
"github.com/abcum/surreal/util/show"
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
@ -62,7 +63,7 @@ func routes(s *fibre.Fibre) {
|
|||
// --------------------------------------------------
|
||||
|
||||
s.Get("/info", func(c *fibre.Context) error {
|
||||
return c.Code(200)
|
||||
return c.Send(200, build.GetInfo())
|
||||
})
|
||||
|
||||
// --------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue