Add API basis

This commit is contained in:
nemunaire 2016-01-07 18:27:53 +01:00
parent 21e4432fad
commit a5dc600f28
3 changed files with 123 additions and 0 deletions

11
admin/api_version.go Normal file
View file

@ -0,0 +1,11 @@
package main
import ()
var ApiVersionRouting = map[string]DispatchFunction{
"GET": showVersion,
}
func showVersion(args []string, body []byte) (interface{}, error) {
return map[string]interface{}{"version": 0.1}, nil
}