Add endpoints method to config