server: implement local file management
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user