Initial commit

This commit is contained in:
nemunaire 2018-06-22 00:29:12 +02:00
commit 16d2285ff3
6 changed files with 318 additions and 0 deletions

13
api/version.go Normal file
View file

@ -0,0 +1,13 @@
package api
import (
"github.com/julienschmidt/httprouter"
)
func init() {
router.GET("/api/version", apiHandler(showVersion))
}
func showVersion(_ httprouter.Params, body []byte) (interface{}, error) {
return map[string]interface{}{"version": 0.1}, nil
}