am-i-alive-go

Make it easy for people to check if you are alive or not.
git clone http://git.hanabi.in/repos/am-i-alive-go.git
Log | Files | Refs | README | LICENSE

update-last-active.go (249B)


      1 package handlers
      2 
      3 import (
      4 	"net/http"
      5 )
      6 
      7 func UpdateLastActive(rw http.ResponseWriter, r *http.Request) {
      8 	rw.Header().Set("Content-Type", "application/json")
      9 	header, resp := getRespForUpdateLastActive(r)
     10 	rw.WriteHeader(header)
     11 	rw.Write(resp)
     12 }