summaryrefslogtreecommitdiffstats
path: root/router/faq_handler.go
blob: f9331b9f3ad4efd385cc4e85229d2721771dcdf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package router

import (
	"net/http"
)

func FaqHandler(w http.ResponseWriter, r *http.Request) {
	ftv := FaqTemplateVariables{NewCommonVariables(r)}
	err := faqTemplate.ExecuteTemplate(w, "index.html", ftv)
	if err != nil {
		http.Error(w, err.Error(), http.StatusInternalServerError)
	}
}