Move resource endpoints into standalone file