diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-02 11:45:27 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-02 11:45:27 +0300 |
| commit | 23d017ff90abfe7aeea7fb43619d7469e3ec0c2a (patch) | |
| tree | 95380288fa9d7ee362e43f5f91dcfd3370a79469 /internal/api/server.go | |
| parent | 5275a0a4cec129bc1ea66beab934bf472f7a7fd2 (diff) | |
more on this
Diffstat (limited to 'internal/api/server.go')
| -rw-r--r-- | internal/api/server.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/api/server.go b/internal/api/server.go index 6c15c78..1855148 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -112,7 +112,9 @@ func (s *Server) routes() { // Sets s.mux.Handle("GET /api/sets", s.mw.RequireSession(http.HandlerFunc(s.handleListSets))) - s.mux.Handle("POST /api/sets/{id}/cover", s.mw.RequireSession(http.HandlerFunc(s.handleSetCover))) + s.mux.Handle("GET /api/sets/{id}/browse", s.mw.RequireSession(http.HandlerFunc(s.handleBrowseSet))) + s.mux.Handle("GET /api/sets/{id}/cover", s.mw.RequireSession(http.HandlerFunc(s.handleGetSetCover))) + s.mux.Handle("POST /api/sets/{id}/cover", s.mw.RequireSession(http.HandlerFunc(s.handlePostSetCover))) s.mux.Handle("POST /api/sets/{id}/upload", s.mw.RequireSession(http.HandlerFunc(s.handleUpload))) // Media |
