summaryrefslogtreecommitdiffhomepage
path: root/http/index.go
blob: 4bb9567ae4faeddb8e6fcfcdfe8309e1d62cc7a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
package http

import (
	"github.com/valyala/fasthttp"
	"toast.cafe/x/brpaste/v2/template"
)

func Index(ctx *fasthttp.RequestCtx) {
	//b := new(bytes.Buffer)
	//template.Index(b)
	ctx.SuccessString("text/html", template.Index()) // render template
}