Move SlimRest endpoints to endpoints.php