Added basic REST routes
Fixed so new endpoint will work