Permalink
Browse files

changes

  • Loading branch information...
maij committed Feb 14, 2020
1 parent 167fe24 commit 3b55314f1409db98df7d4a26a3050478a7069475
BIN +6 KB .DS_Store
Binary file not shown.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,14 @@
function appIndex(req, res) {
res.send('Hello from the application index page');
}

module.exports = {
index: appIndex,
};

// in controllers/shops.js modify the .get('/shops' route to render the shops/shops
// template. You will need to do the following:

// replace res.send with res.render
// set the context (2nd argument to res.render) to {shops: <results from calling
// getShops()>}
@@ -1,5 +1,4 @@


const express = require('express')
const app = express();
app.use(express.urlencoded({ extended: true }));

This file was deleted.

Oops, something went wrong.
File renamed without changes.
@@ -0,0 +1,17 @@
<h1>Welcome to shops</h1>
<p>This a place for great shops.</p>

{{!-- views/shops/shops.hbs to list the names of all the shops using --}}
{{#each}}...{{/each}}

<a href="/shops/{{@index}}">...</a>

<ul>
{{#each shops}}
<li>{{ Target }}</li>
<li>{{ Publix }}</li>
<li>{{ WalMart }}</li>
<li>{{ Ralphs }}</li>
<li>{{ Macys }}</li>
{{/each}}
</ul>

0 comments on commit 3b55314

Please sign in to comment.