mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Loads current text statically. Faster loading
This commit is contained in:
@ -30,8 +30,9 @@ func editNote(c *gin.Context) {
|
||||
c.Redirect(302, "/"+title+"/view")
|
||||
} else {
|
||||
c.HTML(http.StatusOK, "index.tmpl", gin.H{
|
||||
"Title": title,
|
||||
"ExternalIP": RuntimeArgs.ExternalIP,
|
||||
"Title": title,
|
||||
"ExternalIP": RuntimeArgs.ExternalIP,
|
||||
"CurrentText": getCurrentText(title),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user