DEVELOPMENT ENVIRONMENT

~liljamo/tixe

ref: c57a862c4977378256899f12648f72534ee68a32 tixe/handlers/login.go -rw-r--r-- 254 bytes
c57a862cJonni Liljamo wip: internal users 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)
}