package main // This file is the one place in your application where all routes are listed. import ( "ld/server" "net/http" ) // addRoutes combines the URL endpoints with the applications's services // and dependencies and required middleware func addRoutes( s *server.Server, ) { s.Mux.Handle("GET /", http.FileServer(http.FS(s.Static))) // s.Mux.Handle("GET /board", api.Board(s.Ctx, s.StateDB, s.Templ)) // s.Mux.Handle("GET /edit-record/{id}", api.EditRecord(s.Ctx, s.StateDB, s.Templ)) // s.Mux.Handle("PATCH /patch-record/{id}", api.PatchRecord(s.Ctx, s.StateDB, s.Templ)) // s.Mux.Handle("DELETE /delete-record/{id}", api.DeleteRecord(s.Ctx, s.StateDB, s.Templ)) }