This repository has been archived on 2020-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
filicop/server/api/version.go

14 lines
258 B
Go
Raw Normal View History

2018-06-18 17:56:11 +00:00
package api
import (
"github.com/julienschmidt/httprouter"
)
func init() {
router.GET("/version", apiHandler(showVersion))
}
func showVersion(_ httprouter.Params, body []byte) (interface{}, error) {
return map[string]interface{}{"version": 0.1}, nil
}