Fix API Issue Close #5

master
kreativmonkey 7 years ago
parent 7d739fb096
commit 9c36dd2732

@ -9,7 +9,7 @@ import (
"fmt"
)
const version = "0.01"
const version = "0.02"
const port = "9090"
const db = "./test.db"

@ -55,7 +55,7 @@ func (s *Storage) Short(URL string, value *string) error {
// Test if the URL alraedy exist and return the key
if val, ok := s.Url[hash]; ok {
value = &val
*value = val
return nil
}
// Iterate to the length of hash to get the shortest output

Loading…
Cancel
Save