element/server/handler.go
Evan Hazlett 7574b334cc
start on api
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2017-07-29 10:11:50 -04:00

12 lines
259 B
Go

package server
import (
"net/http"
"github.com/ehazlett/element/version"
)
func (s *Server) getRequestHandler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("X-Content-Server", "element "+version.FullVersion())
w.WriteHeader(http.StatusOK)
}