feat: add month expiration time
This commit is contained in:
@@ -64,6 +64,7 @@ func UploadFiles(client valkey.Client) func(w http.ResponseWriter, r *http.Reque
|
||||
{DurationCode: "36h", DurationName: "36 Hours"},
|
||||
{DurationCode: "48h", DurationName: "48 Hours"},
|
||||
{DurationCode: "168h", DurationName: "1 Week"},
|
||||
{DurationCode: "731h", DurationName: "1 Month"},
|
||||
}, fmt.Sprintf("https://share.lukaswerner.com/%s", uid.String()))).ServeHTTP(w, r)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@ func main() {
|
||||
{DurationCode: "36h", DurationName: "36 Hours"},
|
||||
{DurationCode: "48h", DurationName: "48 Hours"},
|
||||
{DurationCode: "168h", DurationName: "1 Week"},
|
||||
{DurationCode: "731h", DurationName: "1 Month"},
|
||||
}, "")))
|
||||
|
||||
http.Handle("POST /upload", http.HandlerFunc(handlers.UploadFiles(client)))
|
||||
|
||||
Reference in New Issue
Block a user