From 9f07ab1f739700b7fa86d36ff24dffd38f2045ce Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Mon, 22 Aug 2016 08:07:29 -0400 Subject: [PATCH] create controller dir --- node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.md b/node.md index 5e2b5e3..49bdafe 100644 --- a/node.md +++ b/node.md @@ -93,7 +93,7 @@ var runsController = require('./controllers/runs.js'); //require our own runsCon app.use('/runs/', runsController); //use it for anything starting with /runs ``` -Now, in a separate file, we can use: +Now, create a controllers directory, create an appropriately named file, and use: ```javascript var controller = require('express').Router(); //require express and create a router (controller)