improved route format, attached type to httpContext and set to true if path/pathname{.format} exists