logo

Crowdly

Browser

Додати до Chrome

The code below was extracted from the class. Knowing that you have the follo...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

The code below was extracted

from the class.

Knowing that you have the

following project hierarchy.

Analyze the code below and

choose only the correct answers.

There are 4 correct answers.

Each correct answer adds 25% to the question's grade.

Each wrong answer chosen reduces the question's grade by 25%.

Project Hierarchy

File: server/app/routes/product.route.js

  1. module.exports = app => {
  2.     const product = require("../controllers/product.controller.js")
  3.     const router = require("express").Router()
  4.     router.post("/", product.create)
  5.     router.get("/", product.findAll)
  6.     router.put("/:id", product.update)
  7.     router.delete("/:id", product.delete)
  8.     app.use('/api/product'

    ,

    router)
  9.  

    }

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.concordia.ca?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome