[WIP] Fix ui api authentication

This commit is contained in:
Vladimir Stoilov
2024-09-25 17:34:23 +03:00
parent 1b6ee722f3
commit 08830f29c6
7 changed files with 27 additions and 19 deletions

View File

@@ -188,6 +188,10 @@ func (u *Updates) Start() error {
return nil
}
func (u *Updates) GetRootPath() string {
return u.registry.dir
}
// GetFile returns the path of a file given the name.
func (u *Updates) GetFile(id string) (*File, error) {
file, ok := u.registry.files[id]