DEVELOPMENT ENVIRONMENT

~liljamo/tixe

ref: internal-users-1st-draft tixe/handlers/login.go -rw-r--r-- 254 bytes
c57a862cJonni Liljamo wip: internal users 1 year, 2 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)
}