Skip to content

Conversation

@a60814billy
Copy link
Member

@a60814billy a60814billy commented Apr 11, 2017

  • Extract Auth Method from app.js
  • Separate routing method from app.js
  • Refactor config.js improve readability

@a60814billy a60814billy requested review from Yukaii and jackycute and removed request for Yukaii and jackycute April 11, 2017 21:43
@a60814billy a60814billy changed the title WIP: Backend refactor Backend code refactoring - part 1 Apr 12, 2017
@a60814billy a60814billy requested review from Yukaii and jackycute April 12, 2017 18:02
app.js Outdated
}
next()
})
app.use(require('./lib/web/middleware/checkURiValid'))
Copy link
Member

Choose a reason for hiding this comment

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

Would it be better if we use the camel case convention checkUrlValid ? 😕

Copy link
Member Author

Choose a reason for hiding this comment

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

The middleware is checking uri only, I'll rename to checkURIValid

@SISheogorath
Copy link
Contributor

Very nice! I like the new structure!

@jackycute
Copy link
Member

Thanks @a60814billy

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.

5 participants