diff --git a/mastodon/src/main/java/org/joinmastodon/android/api/requests/instance/GetInstance.java b/mastodon/src/main/java/org/joinmastodon/android/api/requests/instance/GetInstance.java index 84273ce22..2ed250b96 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/api/requests/instance/GetInstance.java +++ b/mastodon/src/main/java/org/joinmastodon/android/api/requests/instance/GetInstance.java @@ -7,4 +7,15 @@ public class GetInstance extends MastodonAPIRequest{ public GetInstance(){ super(HttpMethod.GET, "/instance", Instance.class); } + + public static class V2 extends MastodonAPIRequest{ + public V2(){ + super(HttpMethod.GET, "/instance", Instance.V2.class); + } + + @Override + protected String getPathPrefix() { + return "/api/v2"; + } + } }