Obey supplied expiration time ShortenReq.ExpiresAfter
This commit is contained in:
@ -10,8 +10,8 @@ type ExpandResp struct {
|
||||
}
|
||||
|
||||
type ShortenReq struct {
|
||||
LongUrl string `json:"longUrl"`
|
||||
ExpiresIn int64 `json:"expiresIn,optional"`
|
||||
LongUrl string `json:"longUrl"`
|
||||
ExpiresAfter int64 `json:"expiresAfter,optional"`
|
||||
}
|
||||
|
||||
type ShortenResp struct {
|
||||
|
Reference in New Issue
Block a user