Add lib library and fix invalid route.