summaryrefslogtreecommitdiffhomepage
path: root/http/index.go
diff options
context:
space:
mode:
Diffstat (limited to 'http/index.go')
-rw-r--r--http/index.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/http/index.go b/http/index.go
new file mode 100644
index 0000000..4bb9567
--- /dev/null
+++ b/http/index.go
@@ -0,0 +1,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
+}