This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
leviolson
/
website
Watch
1
Star
1
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
whoops forgot the optimization part
master
Levi Olson
4 years ago
parent
5b1675ae95
commit
d2f185f169
1 changed files
with
1 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
app.js
+ 1
- 0
app.js
View File
@ -50,6 +50,7 @@ app.get('/posts', (req, res) => {
if
(
keyA
>
keyB
)
return
-
1
if
(
keyA
>
keyB
)
return
-
1
return
0
return
0
}
)
}
)
posts
=
data
.
posts
}
}
res
.
render
(
'pages/posts'
,
data
)
res
.
render
(
'pages/posts'
,
data
)
}
)
}
)
Write
Preview
Loading…
Cancel
Save