Middleware for adding Link header