Fix resources endpoint