docs: function handleRequest(providedUrl, req, res) {
    let $
    // Check for the filter parameter
    const filter = req.params.filter || req.query.filter || req.query.search || ''
  
    // Add name filtering if it is requested
    let url = providedUrl || ''
    if (filter !== '') {
      url += `&Nafn=${filter}`
    }
  
    request.get({
      headers: { 'User-Agent': h.browser() },
      url,
    }, (error, response, body) => {
      if (error || response.statusCode !== 200) {
        return res.status(500).json({ error: 'www.island.is refuses to respond or give back data' })
      }
  
      try {
        $ = cheerio.load(body)
      } catch (exc) {
        return res.status(500).json({ error: 'Could not parse body' })
      }
  
      const obj = { results: [] }
  
      // Clear data regarding the acceptance date of the name (not needed)
      $('.dir li i').each(() => {
        $(this).remove()
      })
  
      // Loop through all the names in the list and add them to our array
      $('.dir li').each(() => {
        const name = $(this).text()
        obj.results.push(name.trim())
      })
  
      // Return the results as JSON and cache for 24 hours
      return res.cache(86400).json(obj)
    })
  }