'use strict';

var express = require('express');
var MessageController = require('../controllers/MessageController.js');
var auth = require("../config/auth.service.js");

var controller =  new MessageController();

var router = express.Router();

router.get('/', auth.isAuthenticated ,controller.index);
// router.get('/', controller.index);
// router.get('/:id', controller.show);
// router.post('/', auth.isAuthenticated(), controller.create);
// router.put('/:id', auth.isAuthenticated(), controller.update);
// router.patch('/:id', auth.isAuthenticated(), controller.update);
// router.delete('/:id', auth.isAuthenticated(), controller.destroy);

module.exports = router;
