1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00

setting up folder structures

This commit is contained in:
2016-05-11 23:44:15 -05:00
parent 64468b0a2d
commit 92cbe02e2e
4 changed files with 57 additions and 0 deletions

18
controller/index.go Normal file
View File

@@ -0,0 +1,18 @@
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)
}