<Emily_Litella>Never mind!</Emily_Litella>

This commit is contained in:
2025-09-24 22:02:11 -06:00
parent 0ede5fe9e0
commit ac3888f832
59 changed files with 0 additions and 15 deletions
-13
View File
@@ -17,16 +17,11 @@ import (
"net/http"
"path/filepath"
"strings"
"git.erbosoft.com/amy/amsterdam/config"
)
//go:embed static_images/*
var static_images embed.FS
//go:embed buttons/*
var buttons embed.FS
/* mimeTypeFromFilenane returns the MIME type of a file, given its filename.
* Parameters:
* filaname - The name of the file to be tested.
@@ -57,14 +52,6 @@ func AmServeImage(ctxt AmContext) (string, any, error) {
return "bytes", b, nil
}
}
if components[2] == "button/" {
b, err = buttons.ReadFile(filepath.Join("buttons", config.GlobalConfig.Rendering.ButtonSet,
components[3]))
if err == nil {
ctxt.SetOutputType(mimeTypeFromFilename(components[3]))
return "bytes", b, nil
}
}
}
ctxt.SetRC(http.StatusNotFound)
// TODO: improve this error reporting