Rename template to login
This commit is contained in:
parent
f74b7ab078
commit
39141ab2e6
2
main.go
2
main.go
@ -57,7 +57,7 @@ func login(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
c.HTML(http.StatusOK, "login.html", nil)
|
||||
c.HTML(http.StatusOK, "login", nil)
|
||||
}
|
||||
|
||||
func logout(c *gin.Context) {
|
||||
|
@ -1,3 +1,4 @@
|
||||
{{define "login"}}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
@ -40,3 +41,4 @@
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
Loading…
x
Reference in New Issue
Block a user