package main import ( "fmt" "net/http" ) func (app *application) createMovieHandler(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusAccepted) fmt.Fprintln(w, "Resource created") } func (app *application) getAllMoviesHandler(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "Movies List") } func (app *application) healthCheckHandler(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "status: available!") fmt.Fprintf(w, "environment: %s\n", app.config.env) fmt.Fprintf(w, "version: %s\n", Version) }