Replies: 1 comment 2 replies
-
We need the distinction for documentation purpose first, indeed, but not exclusively. Why
|
Beta Was this translation helpful? Give feedback.
-
We need the distinction for documentation purpose first, indeed, but not exclusively. Why
|
Beta Was this translation helpful? Give feedback.
-
Pro: Aesthetically I like the
.handler
convention.Con: Technically
.handler.js
is just a regular.js
file so it could be a bit misleading (I usually expect.something.js
to be special in some way).On a tangent, I'm thinking maybe we could/should always use the term "middleware" and not focus on the "middleware"/"handler" distinction. But I don't know, maybe it's actually helpful for the documentation / clarifying things.
Maybe it should be
.middleware.js
instead of.handler.js
. (Unless.handler.js
cannot be a middleware.)Anyways, just thinking out loud. I ain't that familiar with universal-middleware. You probably thought a lot more about all this than I did. (Feel free to ignore this discussion if you don't see potential in it.)
Beta Was this translation helpful? Give feedback.
All reactions