Fixed api not working.

API urls were added back in and the beta middleware has been updated to allow api calls.