Skip to content

Conversation

@jenni
Copy link

@jenni jenni commented May 23, 2018

  1. Move routes into a routes folder for the sake of project's structure:
  • Changed res.sendFile(__dirname + '/index.html') for res.sendFile('/index.html', { root: '.' }) to point to project root.
  • Changed relative paths to load files, const {hashPassword, checkPassword} = require('./bcrypt') for const {hashPassword, checkPassword} = require('../bcrypt'), and so on so on.
  • Added require('./routes/appRoutes')(app) in index.js to load routes.
  1. Add .editorconfig for code style consistency along the project.

The king is dead, long live the q u e e r!

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.

1 participant