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
1 changed files with 11 additions and 0 deletions

View File

@ -7,4 +7,15 @@ public class GetInstance extends MastodonAPIRequest<Instance>{
public GetInstance(){
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";
}
}
}