Add mermaidjs support

This commit is contained in:
arnaucube
2023-06-26 23:42:15 +02:00
parent 141fe19337
commit 6eca1ef712
5 changed files with 22 additions and 1 deletions

View File

@@ -13,6 +13,8 @@ import (
"github.com/gorilla/websocket"
)
const version = "v0_20230626"
var (
upgrader = websocket.Upgrader{
ReadBufferSize: 1024,
@@ -27,6 +29,8 @@ type PageModel struct {
}
func main() {
fmt.Println("md-live-server version:", version)
router := mux.NewRouter()
router.HandleFunc("/", getDir).Methods("GET")
router.HandleFunc("/{path}", getPage).Methods("GET")