func Index(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
	jsonResp, err := createJSON(MessageResp{Message: "Welcome to url-shortener"})
	if err != nil {
		log.Fatal(err)
	}
	sendResponse(w, r, http.StatusOK, jsonResp)
}
// Index handles requests for / path
Index handles requests for / path
// Index handles requests for / path
func Index(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
	jsonResp, err := createJSON(MessageResp{Message: "Welcome to url-shortener"})
	if err != nil {
		log.Fatal(err)
	}
	sendResponse(w, r, http.StatusOK, jsonResp)
}
func Index ( w http . ResponseWriter , r * http . Request , _ httprouter . Params ) { jsonResp , err := createJSON ( MessageResp { Message : " " } ) if err != nil { log . Fatal ( err ) } sendResponse ( w , r , http . StatusOK , jsonResp ) }
Index handles requests for / path
Index handles requests for / path