Fix router to use the right typehint (doh)