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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
c.HTML(http.StatusOK, "login.html", nil)
|
c.HTML(http.StatusOK, "login", nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func logout(c *gin.Context) {
|
func logout(c *gin.Context) {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{{define "login"}}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
@ -40,3 +41,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
{{end}}
|
Loading…
x
Reference in New Issue
Block a user