func JSONPost(request *atlas.Request) *atlas.Response { var data map[string]string err := request.JSONPost(&data) if err != nil { return atlas.Error(500, err) } return atlas.Success(data) }
func PostName(request *atlas.Request) *atlas.Response { return atlas.Success(request.Form.Get("name")) }
func QueryString(request *atlas.Request) *atlas.Response { return atlas.Success(request.Query) }
func User(request *atlas.Request) *atlas.Response { return atlas.Success(&Person{request.Params["name"], request.Params["surname"]}) }
func Now(request *atlas.Request) *atlas.Response { return atlas.Success(time.Now()) }
func Hello(request *atlas.Request) *atlas.Response { return atlas.Success("Hello World") }