indiescrobble/controllers/index.go

17 lines
307 B
Go
Raw Normal View History

package controllers
import (
"net/http"
"git.jamesravey.me/ravenscroftj/indiescrobble/scrobble"
"github.com/gin-gonic/gin"
)
func Index(c *gin.Context) {
c.HTML(http.StatusOK, "index.tmpl", gin.H{
"title": "test",
"user": c.GetString("user"),
"scrobbleTypes": scrobble.ScrobbleTypeNames,
})
}