mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Works with go install
now
This commit is contained in:
2
main.go
2
main.go
@ -63,7 +63,7 @@ Options:`)
|
|||||||
//rebuildTexts(q)
|
//rebuildTexts(q)
|
||||||
|
|
||||||
r := gin.Default()
|
r := gin.Default()
|
||||||
r.LoadHTMLGlob("templates/*")
|
r.LoadHTMLGlob(path.Join(path.Dir(executableFile), "templates/*"))
|
||||||
r.GET("/", newNote)
|
r.GET("/", newNote)
|
||||||
r.GET("/:title", editNote)
|
r.GET("/:title", editNote)
|
||||||
r.GET("/:title/*option", everythingElse)
|
r.GET("/:title/*option", everythingElse)
|
||||||
|
Reference in New Issue
Block a user