Complete the code to import the controller module correctly.
const userController = require('[1]');
The controller module is usually imported from a local file path, like './userController'.
Complete the code to define a GET route using the controller's method.
router.get('/users', [1].getAllUsers);
The route handler should call the controller's method, so use 'userController.getAllUsers'.
Fix the error in the controller method export syntax.
module.exports = { [1]: (req, res) => { res.send('Hello'); } };The exported method name should be a valid function name like 'getAllUsers'.
Fill both blanks to create a POST route and call the correct controller method.
router.[1]('/users', [2].createUser);
Use 'post' to define a POST route and call the controller's 'createUser' method.
Fill all three blanks to export the router and import express and the controller correctly.
const express = require('[1]'); const userController = require('[2]'); const router = express.Router(); router.get('/users', userController.getAllUsers); module.exports = [3];
Import 'express' and the local controller file, then export the 'router' object.