Typo (middleware-> Middleware)

There seems to be a problem with the decorator. Maybe I'm not using it right, but it returns a NameError because `middleware` doesn't exist.