Add http fetch without query parameters
This commit is contained in:
parent
33d5668bcc
commit
b2a62261ce
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user