text: const express = require('express')
  const routes = express.Router()
  
  const instructors = require('./controllers/instructors')
  
  const members = require('./controllers/members')
  
  routes.get("/", function(req, res) {
      return res.redirect("/instructors")
  })
  routes.get("/instructors", instructors.index)
  routes.get('/instructors/create', instructors.create)
  routes.get('/instructors/:id', instructors.show)
  routes.get('/instructors/:id/edit', instructors.edit)
  routes.post("/instructors", instructors.post)
  routes.put('/instructors', instructors.put)
  routes.delete('/instructors', instructors.delete)
  
  routes.get("/members", members.index)
  routes.get('/members/create', members.create)
  routes.get('/members/:id', members.show)
  routes.get('/members/:id/edit', members.edit)
  routes.post("/members", members.post)
  routes.put('/members', members.put)
  routes.delete('/members', members.delete)
  
  
  
  
  
  // routes.get("/video", function(req, res) {
  //     // Pegar o Id da requisição solicitada
  //     const id = req.query.id
  
  //     // Filtando do array do arquivo data.js
  //     const video = videos.find(function(video) {
  //         // if (video.id == id){
  //         //     return true
  //         // }
  //         return video.id == id
  //     })
  
  //     if (!video) {
  //         return res.send("Video not found!")
  //     }
  
  //     return res.render("video", { item: video })
  // })
  
  
  module.exports = routes