-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Backend code refactoring - part 1 #421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
app.js
Outdated
| } | ||
| next() | ||
| }) | ||
| app.use(require('./lib/web/middleware/checkURiValid')) |
There was a problem hiding this comment.
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 ? 😕
There was a problem hiding this comment.
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
|
Very nice! I like the new structure! |
Use class style implement write interface
use logger instead of logger.stream
extract check URi is valid, redirect without trailing slashes
* Separate different config source to each files * Freeze config object
bb65adb to
d799978
Compare
|
Thanks @a60814billy |
Uh oh!
There was an error while loading. Please reload this page.