DEVELOPMENT ENVIRONMENT

~liljamo/tixe

ref: b76c91464a188c22423f19d39b6aa0bcc3108109 tixe/handlers/login.go -rw-r--r-- 254 bytes
b76c9146Jonni Liljamo feat: doc update, login page divider 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
package handlers

import (
	"net/http"
	"tixe/template"

	"github.com/gin-gonic/gin"
)

func Login(c *gin.Context) {
	html := template.TmplEngine.Render("login.tmpl", map[string]interface{}{"notauthed": true})
	c.Data(http.StatusOK, "text/html", html)
}