Add check to set route types, defaults to literal

@juriansluiman can you review this and add a proper description?