vineyardkoeln / churchtools-api

Access the API for ChurchTools at https://api.churchtools.de/ in an object-oriented way that integrates nicely with modern PHP projects via Composer.
Apache License 2.0
14 stars 8 forks source link

Enhance API to also work with self hosted ct installations #3

Closed a-schild closed 5 years ago

a-schild commented 5 years ago

Solve issue #2 To retain the existing api, we just check if at least one dot is found in the $churchHandle argument. In that case it must be a full hostname, since ct hsoting does not support subdomains like site1.mychurch.church.tools