mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 09:36:13 -08:00
corrected the directory layout
This commit is contained in:
@@ -29,13 +29,9 @@ func ParseRepositoryName(n string) (string, error) {
|
||||
}
|
||||
|
||||
// Returns the backend type for a given path
|
||||
func BackendType(u string) backend.Type {
|
||||
func BackendType(u string) string {
|
||||
s := strings.Split(u, "/")
|
||||
var bt backend.Type
|
||||
if len(s) > 2 {
|
||||
bt = parseBackendType(s[2])
|
||||
}
|
||||
return bt
|
||||
return s[2]
|
||||
}
|
||||
|
||||
func parseBackendType(u string) backend.Type {
|
||||
|
||||
Reference in New Issue
Block a user