mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Works with go install
now
Former-commit-id: e8f547f5d313841f5d7d4d948fc41647e133d6be [formerly eab73aa394d77bbdc282424608474169b7c59d32] [formerly 390884efb34984f8e12bab5539d22708bfac9bfe [formerly 39b0a914769e18e09e945d12b4a4cf8ea76d6f4d [formerlyade7a635c4
]]] Former-commit-id: c6b97dfebd3e67ae41995ee2c7460fe42ba6fe9b [formerly 730e316ee79a607e336c32ffb9f35778bd257e64] Former-commit-id: 24302f964c296a31cff2d75d0d406ab3e199fe21 Former-commit-id:c9bbc821be
This commit is contained in:
parent
0dfa6f388f
commit
bba9d5b454
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user