summaryrefslogtreecommitdiff
path: root/controller/index.go
blob: 6f927ed876e1c73d3d87110cccecd51ef371873d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package controller

import (
	"net/http"
)

func (app App) Index(res http.ResponseWriter, req *http.Request) {
	if !app.requireAuth(res, req) {
		return
	}

	app.tmpl.ExecuteTemplate(res, "index", nil)
}