Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to cleanup the services? #10

Open
GabeAboy opened this issue Aug 20, 2024 · 0 comments
Open

Is it possible to cleanup the services? #10

GabeAboy opened this issue Aug 20, 2024 · 0 comments

Comments

@GabeAboy
Copy link
Contributor

Can this be shared? That way the service functions can return structs and we can test them easier

`
response, err := json.Marshal(divisions)
if err != nil {
http.Error(w, "Error marshalling JSON", http.StatusInternalServerError)
return
}

w.WriteHeader(http.StatusOK)
_, err = w.Write(response)
if err != nil {
	http.Error(w, "Error writing response", http.StatusInternalServerError)
	return
}`
@GabeAboy GabeAboy added this to Backlog Aug 20, 2024
@GabeAboy GabeAboy converted this from a draft issue Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant