Пример #1
0
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)
}
Пример #2
0
func Company(request *atlas.Request) *atlas.Response {
	return atlas.Error(500, "An error occured")
}