Some simple middleware for Goji