var express = require('express');
var router = express.Router();
var handlers = require('./handlers');

router.get('/', handlers.index);
router.get('/post-titles', handlers.getPostList);
router.get('/post/:slug', handlers.getPost);
router.post('/create-post/', handlers.createPost);
router.put('/post/:slug', handlers.updatePost);
router.delete('/post/:slug', handlers.removePost);

module.exports = router;

var express = require('express');
var router = express.Router();
var handlers = require('./handlers');

router.get('/', handlers.index);
router.get('/list-posts', handlers.getPostList);
router.get('/post/:slug', handlers.getPost);
router.post('/create-post/', handlers.createPost);
router.put('/post/:slug', handlers.updatePost);
router.delete('/post/:slug', handlers.removePost);

module.exports = router;

--- 
+++ 
@@ -3,7 +3,7 @@
 var handlers = require('./handlers');
 
 router.get('/', handlers.index);
-router.get('/post-titles', handlers.getPostList);
+router.get('/list-posts', handlers.getPostList);
 router.get('/post/:slug', handlers.getPost);
 router.post('/create-post/', handlers.createPost);
 router.put('/post/:slug', handlers.updatePost);
Change route for list titles
