forked from MapComplete/MapComplete
Refactoring: make needed URLs explicit
This commit is contained in:
parent
7852829f1b
commit
4852888b41
51 changed files with 978 additions and 871 deletions
|
@ -32,11 +32,12 @@ export default class Maproulette {
|
|||
private readonly apiKey: string
|
||||
|
||||
public static singleton = new Maproulette()
|
||||
public static readonly defaultEndpoint = "https://maproulette.org/api/v2"
|
||||
/**
|
||||
* Creates a new Maproulette instance
|
||||
* @param endpoint The API endpoint to use
|
||||
*/
|
||||
constructor(endpoint: string = "https://maproulette.org/api/v2") {
|
||||
constructor(endpoint: string = Maproulette.defaultEndpoint) {
|
||||
this.endpoint = endpoint
|
||||
this.apiKey = Constants.MaprouletteApiKey
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue