Skip to content

Commit 26c5d81

Browse files
committed
Change the route loginform to login
Calling the route loginform is redundant when its assumed to be one just based on the action. Its simpler just to call the route login.
1 parent b6cf233 commit 26c5d81

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func main() {
238238
router.Renderer = tm
239239
router.GET("/", homePage)
240240
router.GET("/signup", signUp)
241-
router.GET("/loginForm", loginForm)
241+
router.GET("/login", loginForm)
242242
router.POST("/view", accountCreation)
243243
router.POST("/posts", vetLogin)
244244
router.POST("/refresh", addPosts)

ui/html/pages/home.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</header>
1313

1414
<p>{{.}}!<p><br>
15-
<a href="/loginForm"> Sign in</a><br>
15+
<a href="/login"> Sign in</a><br>
1616
<a href="/signup"> Create an Account</a>
1717

1818
</body>

0 commit comments

Comments
 (0)