diff --git a/src/url-shortener/url-shortener.service.ts b/src/url-shortener/url-shortener.service.ts index 6856703..df47c19 100644 --- a/src/url-shortener/url-shortener.service.ts +++ b/src/url-shortener/url-shortener.service.ts @@ -18,7 +18,7 @@ export class UrlShortenerService { if(!isValid) { throw new Error('URL is invalid'); } - let shortUrl = shortid.generate(); + let shortUrl = "tiny." + shortid.generate() + ".com"; this.urlMap.set(shortUrl, originalUrl); return shortUrl }