Hooking in endpoints from data to ruby controllers