forked from q6r/masteringdecisions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
root.go
33 lines (26 loc) · 771 Bytes
/
root.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package main
import "github.com/gin-gonic/gin"
// HRootHome is the main index page
func HRootHome(c *gin.Context) {
ServeResult(c, "page_index.js", gin.H{})
}
// HRootLogin is the main login page
func HRootLogin(c *gin.Context) {
ServeResult(c, "page_login.js", gin.H{})
}
// HRootLogout is the main logout page
func HRootLogout(c *gin.Context) {
ServeResult(c, "page_logout.js", gin.H{})
}
// HRootBallot is the main ballot page
func HRootBallot(c *gin.Context) {
ServeResult(c, "page_ballot.js", gin.H{})
}
// HRootDecision is the main decision page
func HRootDecision(c *gin.Context) {
ServeResult(c, "page_decision.js", gin.H{})
}
// HRootResults is the main decision page
func HRootResults(c *gin.Context) {
ServeResult(c, "page_results.js", gin.H{})
}