Add shortening endpoint to API