Change Mustermann::Rails to Mustermann::Sinatra.
You should put `?` to last  if you use optional params.
before: "/:example(/:optional)"
after: "/:example(/:optional)?"