config: fixed typo
routing: add endpoint class and refactor the Router