Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhickey724 committed Jun 16, 2020
1 parent 7ee79d3 commit ef203e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cs152aj/week3/authdemo/app.js
Expand Up @@ -64,7 +64,7 @@ app.get('/profiles',
}
)

app.get('/publicprofile/userId:',
app.use('/publicprofile/:userId',
async (req,res,next) => {
try {
let userId = req.params.userId
Expand Down
7 changes: 4 additions & 3 deletions cs152aj/week3/authdemo/views/profiles.ejs
@@ -1,15 +1,16 @@
<div class="jumbotron">
<h1>Registered Users</h1>
<p> this comes from the google authentication
and from the info you provide
and from the info you provide
</p>
</div>
<hr>
<ol>
<% profiles.forEach(profile => { %>
<li>
<%= profile.googlename %><br>
<%=profile.googleemail %>
<%= profile.googlename %>
<a href="/publicprofile/<%= profile._id %>">
(link)</a>
</li>
<% }) %>
</ol>
6 changes: 2 additions & 4 deletions cs152aj/week3/authdemo/views/publicprofile.ejs
@@ -1,13 +1,11 @@
<div class="jumbotron">
<h1>Your Profile</h1>
<h1>Authdemo Profile</h1>
<p> this comes from the google authentication
and from the info you provide when you
edit this page!
</p>
</div>
<hr>
<a href="editProfile">Edit</a>
<hr>

<div class="row">
<div class="col-sm-4">
</div>
Expand Down

0 comments on commit ef203e1

Please sign in to comment.