12 lines
249 B
Go
12 lines
249 B
Go
|
package api
|
||
|
|
||
|
import ()
|
||
|
|
||
|
func init() {
|
||
|
router.Path("/version").Methods("GET").HandlerFunc(apiHandler(showVersion))
|
||
|
}
|
||
|
|
||
|
func showVersion(args map[string]string, body []byte) (interface{}, error) {
|
||
|
return map[string]interface{}{"version": 0.1}, nil
|
||
|
}
|