Skip to content

finished exercise#10

Open
rebs1203 wants to merge 2 commits intomainfrom
week8
Open

finished exercise#10
rebs1203 wants to merge 2 commits intomainfrom
week8

Conversation

@rebs1203
Copy link
Owner

No description provided.

Copy link

@joseluiz joseluiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Rebeca. I left a few comments on things you need to fix.
I saw you opted to implement the alternate code assignment. If you are not confident to implement the preferred assignment, feel free to schedule a 1 on 1 with me or if you prefer you can ask questions on Slack. I can help you with this.

const express = require('express');
const app = express();

const mainRouter = require('./routes/main')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You imported the main router, but you forgot to use it.
Add the following line right above the 'app.use(notFoundMiddleware);':
app.use("/api/v1", mainRouter);


res.status(200).json({msg: 'user created', token})

res.send('Fake Login')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove this line. It's not used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants