Setup endpoints as callables