21 lines
422 B
Go
21 lines
422 B
Go
package handlers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"thamanyah/cms/v2/internal/views"
|
|
)
|
|
|
|
func Home(w http.ResponseWriter, r *http.Request) {
|
|
views.Home().Render(r.Context(), w)
|
|
}
|
|
|
|
func Hello(w http.ResponseWriter, r *http.Request) {
|
|
views.Greeting("Fahd Shalhoub").Render(r.Context(), w)
|
|
}
|
|
|
|
func Health(w http.ResponseWriter, r *http.Request) {
|
|
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
|
w.Write([]byte("ok"))
|
|
}
|