Changed order of routing so that wildcard is handled last