1
0
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:
Zack Scholl 2016-02-08 09:57:19 -05:00
parent 8d8472029d
commit ade7a635c4

View File

@ -63,7 +63,7 @@ Options:`)
//rebuildTexts(q)
r := gin.Default()
r.LoadHTMLGlob("templates/*")
r.LoadHTMLGlob(path.Join(path.Dir(executableFile), "templates/*"))
r.GET("/", newNote)
r.GET("/:title", editNote)
r.GET("/:title/*option", everythingElse)