add logo reset endpoint

when resetting the logo we are falling back to the embedded logo asset
This commit is contained in:
David Christofas
2023-02-13 13:48:44 +01:00
parent 7c17ddb0b0
commit 45d1ba25c0
6 changed files with 90 additions and 0 deletions
+4
View File
@@ -28,6 +28,10 @@ func (f *FileSystem) Open(original string) (http.File, error) {
return f.fs.Open(original)
}
func (f *FileSystem) OpenEmbedded(name string) (http.File, error) {
return f.fs.Open(name)
}
// Create creates a new file in the assetPath
func (f *FileSystem) Create(name string) (*os.File, error) {
fullPath := f.jailPath(name)