Page MenuHomeMusing Studio

new clients should take a base URL
Closed, InvalidPublic

Description

Overview

The methods to create a new client and new dev client currently use hard coded URLs for api calls. There should be only one method which should take a parameter for base URL

Background

Previously there was only write.as and development.write.as. We are now using some other development test servers and soon will support custom instances.

Implementation

  • NewDevClient should be removed
  • NewClient and NewTorClient should take an additional parameter baseURL
  • tests should be updated to pass a dev server URL when creating clients for test purposes,

Event Timeline

robjloranger created this task.

This is required to test the fix for T612 on the WriteFreely side

this is already implemented as NewClientWith