server: implement local file management

This commit is contained in:
2026-05-24 16:48:52 +00:00
parent 9eca21de69
commit b0bcb3460b
5 changed files with 206 additions and 1 deletions
+12
View File
@@ -37,3 +37,15 @@ func NewChannelListResponse(channels []*Channel) []render.Renderer {
func (c *ChannelPayload) Render(w http.ResponseWriter, r *http.Request) error {
return nil
}
type FilePayload struct {
*File
}
func NewFilePayloadResponse(file *File) *FilePayload {
return &FilePayload{File: file}
}
func (f *FilePayload) Render(w http.ResponseWriter, r *http.Request) error {
return nil
}