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:
parent
0b1c74695b
commit
89d0f828b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user