feat: add month expiration time
This commit is contained in:
parent
ba346cdac7
commit
bfc15dd80c
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
1
main.go
1
main.go
@ -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)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user