Issue - APIs and Microservices Projects - URL Shortener Microservice

Hi !
I just try this code for watch if dns promise works and the challenge has been validated.
But… It has not finish. :sweat_smile:

'use strict';
const express = require('express');
const mongo = require('mongodb');
const mongoose = require('mongoose');
const cors = require('cors');
const app = express();
const http = require('http').Server(app);
const dns = require('dns').promises;

app.use('/public', express.static(process.cwd() + '/public'));
app.get('/', (req, res) =>  res.sendFile(process.cwd() + '/views/index.html'));
app.get("/api/hello", (req, res) => res.json({greeting: 'hello API'}));'/api/shorturl/new', (req, res) => {
  return dns.lookup('')
    .then(({ address }) => {
      return res.status(200).send({ original_url: "", short_url: 1 });
    .catch(err => {
      return res.status(400).send({ error: "invalid URL"});

http.listen(process.env.PORT || 3000);

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.