Add http fetch without query parameters

This commit is contained in:
Daniel_I_Am 2020-06-04 20:32:36 +02:00
parent 33d5668bcc
commit b2a62261ce
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84

View File

@ -14,6 +14,12 @@ namespace ChaosBot.Services
{ {
public static class LodestoneHttpProxy public static class LodestoneHttpProxy
{ {
public static T fetch<T>(string endpoint)
{
// TODO: implement some sort of local caching
return fetch<T>(endpoint, new Dictionary<string, string>());
}
public static T fetch<T>(string endpoint, Dictionary<string, string> parameters) public static T fetch<T>(string endpoint, Dictionary<string, string> parameters)
{ {
// TODO: implement some sort of local caching // TODO: implement some sort of local caching