First upload endpoint

This commit is contained in:
Aurélie Delhaie
2022-05-08 14:48:51 +02:00
parent b20a53cc48
commit 445f7e8508
10 changed files with 183 additions and 16 deletions

View File

@@ -10,7 +10,12 @@ import (
type Configuration struct {
Database DatabaseConfiguration `yaml:"database"`
Features FeaturesConfiguration `yaml:"features"`
Cache string `yaml:"cache"`
Path PathConfiguration `yaml:"path"`
}
type PathConfiguration struct {
Cache string `yaml:"cache"`
Storage string `yaml:"storage"`
}
type DatabaseConfiguration struct {
@@ -47,6 +52,6 @@ func Features() *FeaturesConfiguration {
return &currentConfig.Features
}
func Cache() string {
return currentConfig.Cache
func Path() *PathConfiguration {
return &currentConfig.Path
}