start register and login page

This commit is contained in:
SowinskiBraeden committed 2022-03-23 22:47:13 -07:00
1 parent 19bb16c450
commit 1ee9de601c
55 files changed
+38561 -11

No files matched your search

+9
View File
@@ -1,6 +1,7 @@
package main
import (
"html/template"
"os"
"github.com/SowinskiBraeden/BugBeGone/routes"
@@ -13,11 +14,19 @@ import (
func main() {
// Create a new engine
engine := html.New("./views", ".html")
engine.AddFunc(
// add unescape function
"unescape", func(s string) template.HTML {
return template.HTML(s)
},
)
app := fiber.New(fiber.Config{
Views: engine,
})
app.Static("/static", "./public")
app.Use(cors.New(cors.Config{
AllowCredentials: true,
}))