diff --git a/src/dns/dns.service.ts b/src/dns/dns.service.ts index a653464..44f26b3 100644 --- a/src/dns/dns.service.ts +++ b/src/dns/dns.service.ts @@ -7,11 +7,9 @@ export class DnsService { private lookup = util.promisify(dns.lookup); async isValidUrl(url: string): Promise { - console.log('HERE!!!') try { const hostname = new URL(url).hostname; await this.lookup(hostname); - console.log('HERE!') return true; } catch { return false; diff --git a/src/url-shortener/url-shortener.controller.ts b/src/url-shortener/url-shortener.controller.ts index c76af6e..3505821 100644 --- a/src/url-shortener/url-shortener.controller.ts +++ b/src/url-shortener/url-shortener.controller.ts @@ -7,7 +7,6 @@ export class UrlShortenerController { @Post('shorten') async shortenUrl(@Body('url') url: string): Promise<{ shortUrl: string }> { - // example route http://localhost:3000/url-shortener/shorten POST body { url: 'https://www.google.com' } if (!url) { throw new HttpException('URL is required', HttpStatus.BAD_REQUEST); }