Added middleware

Signed-off-by: Vishal Rana <vr@labstack.com>