{"action":"created","issue":{"url":"https://api.github.com/repos/nickel-org/nickel.rs/issues/292","labels_url":"https://api.github.com/repos/nickel-org/nickel.rs/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/nickel-org/nickel.rs/issues/292/comments","events_url":"https://api.github.com/repos/nickel-org/nickel.rs/issues/292/events","html_url":"https://github.com/nickel-org/nickel.rs/issues/292","id":114423071,"number":292,"title":"some thing like a BeforeMiddleware (or a pre-middleware)","user":{"login":"masoodahm","id":3177610,"avatar_url":"https://avatars.githubusercontent.com/u/3177610?v=3","gravatar_id":"","url":"https://api.github.com/users/masoodahm","html_url":"https://github.com/masoodahm","followers_url":"https://api.github.com/users/masoodahm/followers","following_url":"https://api.github.com/users/masoodahm/following{/other_user}","gists_url":"https://api.github.com/users/masoodahm/gists{/gist_id}","starred_url":"https://api.github.com/users/masoodahm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masoodahm/subscriptions","organizations_url":"https://api.github.com/users/masoodahm/orgs","repos_url":"https://api.github.com/users/masoodahm/repos","events_url":"https://api.github.com/users/masoodahm/events{/privacy}","received_events_url":"https://api.github.com/users/masoodahm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-31T17:32:44Z","updated_at":"2015-11-04T17:12:28Z","closed_at":null,"body":"hi, I know in nickel a middlware have a different meaning than other frameworks, but is there a mechanism to have a function that runs before every get and post to check if the user is logged in or not, if he/she is then continue to the handler else redirect to login"},"comment":{"url":"https://api.github.com/repos/nickel-org/nickel.rs/issues/comments/153795533","html_url":"https://github.com/nickel-org/nickel.rs/issues/292#issuecomment-153795533","issue_url":"https://api.github.com/repos/nickel-org/nickel.rs/issues/292","id":153795533,"user":{"login":"Ryman","id":994978,"avatar_url":"https://avatars.githubusercontent.com/u/994978?v=3","gravatar_id":"","url":"https://api.github.com/users/Ryman","html_url":"https://github.com/Ryman","followers_url":"https://api.github.com/users/Ryman/followers","following_url":"https://api.github.com/users/Ryman/following{/other_user}","gists_url":"https://api.github.com/users/Ryman/gists{/gist_id}","starred_url":"https://api.github.com/users/Ryman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ryman/subscriptions","organizations_url":"https://api.github.com/users/Ryman/orgs","repos_url":"https://api.github.com/users/Ryman/repos","events_url":"https://api.github.com/users/Ryman/events{/privacy}","received_events_url":"https://api.github.com/users/Ryman/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T17:12:28Z","updated_at":"2015-11-04T17:12:28Z","body":"@masoodahm Can we close this?"}}