const router = require('express').Router();
const MoviesController = require('../controllers/MoviesController');
const checkTmdbConfig = require('../middlewares/movieApiMiddlware');

checkTmdbConfig(router);

router.get('/movies', MoviesController.get);
router.post('/movies', MoviesController.store);

module.exports = router;

const router = require('express').Router();
const moviesController = require('../controllers/moviesController');
const checkTmdbConfig = require('../middlewares/movieApiMiddlware');

checkTmdbConfig(router);

router.get('/movies', moviesController.get);
router.post('/movies', moviesController.store);

module.exports = router;

Rename MoviesController to be consistent with file naming convention
Rename MoviesController to be consistent with file naming convention
