-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More testing of middleware; start work on formal middleware
- Loading branch information
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Middleware | ||
# Middleware are wrapper functions around the main app function. They | ||
# have 3 arguments (app, req, res) instead of the regular two (req, res) | ||
# and return a function that accepts the regular two like a normal app. | ||
# However that function exists within the 3-argument closure and calls the | ||
# closured app function after doing its modifications to the req/res. | ||
# | ||
# The suggested means of action for middleware is to modifiy the req.env | ||
# dict to send/receive data from the app. | ||
|
||
include("Middleware/CookieSession.jl") | ||
end |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters