blob: 35490096b746b6f3ba02c0d80da930d0a4ebfac5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package controller
import (
"projecty/internal/authentication"
"github.com/gofiber/fiber/v2"
)
func SignUpPage(c *fiber.Ctx) error {
isAuthenticated, _ := authentication.AuthGet(c)
if isAuthenticated {
return c.Redirect("/")
}
return c.Render("sign-up/index", fiber.Map{
"PageTitle": "Sign Up — Projecty",
"FiberCtx": c,
"NavBarActive": "sign-up",
}, "layouts/app")
}
|