src

Go monorepo.
git clone git://code.dwrz.net/src
Log | Files | Refs

status.go (225B)


      1 package site
      2 
      3 import (
      4 	"net/http"
      5 )
      6 
      7 func (s *Site) status(w http.ResponseWriter, r *http.Request) {
      8 	if r.Method != http.MethodGet {
      9 		w.WriteHeader(http.StatusMethodNotAllowed)
     10 		return
     11 	}
     12 
     13 	w.WriteHeader(http.StatusOK)
     14 }