1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 10:52:47 +00:00
Files
mywebsite/controller/index.go
2016-05-11 23:44:15 -05:00

19 lines
335 B
Go

package controller
import (
//"encoding/json"
"fmt"
"github.com/julienschmidt/httprouter"
"net/http"
)
// IndexGET displays the home page
func IndexGet(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
w.Header().Set("Content-Type", "application/json")
response := "{\"test\" : 123}"
fmt.Fprint(w, response)
}