This website requires JavaScript.
Explore
Help
Sign In
TryGhost
/
Ghost
Watch
1
Star
0
Fork
0
You've already forked Ghost
mirror of
https://github.com/TryGhost/Ghost.git
synced
2024-12-22 10:21:36 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
9c64d7af81
Ghost
/
core
/
server
/
web
/
shared
/
index.js
6 lines
91 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Refactored how we require shared middlewares from web/ (#9893) refs #9866 - use package notation - get rid of x requires for middlewares - improved readability - do not refactor web/api/v0.1
2018-09-21 13:47:11 +03:00
module
.
exports
=
{
Renamed middlewares to middleware consistently - This is a minor bugbare, but it will affect some configuration I'm about to do for c8 - I've been wanting to do it for ages, middleware is plural all on it's own so it's an odd affectation in our codebase - This also only exists in 2 places, everywhere else we use "middleware" - Sadly it did result in a lot of churn as I did a full find and replace, but consistency is king!
2021-11-16 18:42:02 +03:00
get
middleware
(
)
{
return
require
(
'./middleware'
)
;
Refactored how we require shared middlewares from web/ (#9893) refs #9866 - use package notation - get rid of x requires for middlewares - improved readability - do not refactor web/api/v0.1
2018-09-21 13:47:11 +03:00
}
}
;
Reference in New Issue
Copy Permalink