23 lines
276 B
Go
23 lines
276 B
Go
package server
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func (s *Server) handleLinkManager(
|
|
w http.ResponseWriter,
|
|
r *http.Request,
|
|
) {
|
|
|
|
objects, _ := s.store.ListObjects()
|
|
|
|
s.render(
|
|
w,
|
|
"links.gohtml",
|
|
map[string]any{
|
|
"Title": "Link Manager",
|
|
"Objects": objects,
|
|
},
|
|
)
|
|
}
|