1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Default to editing, not vieweing

This commit is contained in:
Zack Scholl 2017-08-08 11:37:22 -06:00
parent 0b1c74695b
commit 89d0f828b0

View File

@ -94,7 +94,7 @@ func handlePageRequest(c *gin.Context) {
page := c.Param("page")
command := c.Param("command")
if len(command) < 2 {
c.Redirect(302, "/"+page+"/view")
c.Redirect(302, "/"+page+"/edit")
return
}
// Serve static content from memory