You've already forked go-url-shortener
delete short url
This commit is contained in:
@@ -52,3 +52,7 @@ func RetrieveInitialUrl(shortUrl string) (string, error) {
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
func DeleteShortUrl(shortUrl string) error {
|
||||
return storeService.redisClient.Set(ctx, shortUrl, "", time.Second).Err()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user