Get instance things. Still figuring out the merge

This commit is contained in:
LucasGGamerM
2022-12-16 11:03:24 -03:00
parent caddf0021c
commit ba376908cd

View File

@@ -7,4 +7,15 @@ public class GetInstance extends MastodonAPIRequest<Instance>{
public GetInstance(){ public GetInstance(){
super(HttpMethod.GET, "/instance", Instance.class); super(HttpMethod.GET, "/instance", Instance.class);
} }
public static class V2 extends MastodonAPIRequest<Instance.V2>{
public V2(){
super(HttpMethod.GET, "/instance", Instance.V2.class);
}
@Override
protected String getPathPrefix() {
return "/api/v2";
}
}
} }