You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
548 B
Go

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)
}