feat: add month expiration time

This commit is contained in:
Lukas Werner 2025-12-01 12:25:35 -08:00
parent ba346cdac7
commit bfc15dd80c
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,7 @@ func UploadFiles(client valkey.Client) func(w http.ResponseWriter, r *http.Reque
{DurationCode: "36h", DurationName: "36 Hours"}, {DurationCode: "36h", DurationName: "36 Hours"},
{DurationCode: "48h", DurationName: "48 Hours"}, {DurationCode: "48h", DurationName: "48 Hours"},
{DurationCode: "168h", DurationName: "1 Week"}, {DurationCode: "168h", DurationName: "1 Week"},
{DurationCode: "731h", DurationName: "1 Month"},
}, fmt.Sprintf("https://share.lukaswerner.com/%s", uid.String()))).ServeHTTP(w, r) }, fmt.Sprintf("https://share.lukaswerner.com/%s", uid.String()))).ServeHTTP(w, r)
} }
} }

View File

@ -37,6 +37,7 @@ func main() {
{DurationCode: "36h", DurationName: "36 Hours"}, {DurationCode: "36h", DurationName: "36 Hours"},
{DurationCode: "48h", DurationName: "48 Hours"}, {DurationCode: "48h", DurationName: "48 Hours"},
{DurationCode: "168h", DurationName: "1 Week"}, {DurationCode: "168h", DurationName: "1 Week"},
{DurationCode: "731h", DurationName: "1 Month"},
}, ""))) }, "")))
http.Handle("POST /upload", http.HandlerFunc(handlers.UploadFiles(client))) http.Handle("POST /upload", http.HandlerFunc(handlers.UploadFiles(client)))