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:
@@ -94,7 +94,7 @@ func handlePageRequest(c *gin.Context) {
|
|||||||
page := c.Param("page")
|
page := c.Param("page")
|
||||||
command := c.Param("command")
|
command := c.Param("command")
|
||||||
if len(command) < 2 {
|
if len(command) < 2 {
|
||||||
c.Redirect(302, "/"+page+"/view")
|
c.Redirect(302, "/"+page+"/edit")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Serve static content from memory
|
// Serve static content from memory
|
||||||
|
|||||||
Reference in New Issue
Block a user