Add API basis
This commit is contained in:
parent
21e4432fad
commit
a5dc600f28
3 changed files with 123 additions and 0 deletions
11
admin/api_version.go
Normal file
11
admin/api_version.go
Normal 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
|
||||
}
|
Reference in a new issue