Skip to content

books api#10

Open
wedge1126 wants to merge 2 commits intopce-uw-jscript400:masterfrom
wedge1126:master
Open

books api#10
wedge1126 wants to merge 2 commits intopce-uw-jscript400:masterfrom
wedge1126:master

Conversation

@wedge1126
Copy link

No description provided.


// Routes
app.use('/api/books', require('./api/routes/books'))
app.use('/api/books', require('./api/routes/authors'))
Copy link

Choose a reason for hiding this comment

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

Remember when defining routes like this it will attempt to match routes in /books first.

@@ -0,0 +1,50 @@
const router = require('express').Router()
Copy link

Choose a reason for hiding this comment

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

Good work on these!

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