mirror of
https://github.com/datarhei/core.git
synced 2025-09-26 20:11:29 +08:00
Fix missing filesystem metadata and middlewares
This commit is contained in:
@@ -389,6 +389,12 @@ func (a *api) start() error {
|
||||
return fmt.Errorf("disk filesystem: %w", err)
|
||||
}
|
||||
|
||||
if diskfsRoot, err := filepath.Abs(cfg.Storage.Disk.Dir); err != nil {
|
||||
return err
|
||||
} else {
|
||||
diskfs.SetMetadata("base", diskfsRoot)
|
||||
}
|
||||
|
||||
a.diskfs = diskfs
|
||||
|
||||
baseMemFS := url.URL{
|
||||
|
Reference in New Issue
Block a user