a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[frontend/core] Add version controller model

authored by

Lilian and committed by
Laura Hausmann
88bf04a5 aa72e521

+11
+10
Iceshrimp.Frontend/Core/ControllerModels/VersionControllerModel.cs
··· 1 + using Iceshrimp.Frontend.Core.Services; 2 + using Iceshrimp.Shared.Schemas.Web; 3 + 4 + namespace Iceshrimp.Frontend.Core.ControllerModels; 5 + 6 + internal class VersionControllerModel(ApiClient api) 7 + { 8 + public Task<VersionResponse> GetVersion() => 9 + api.Call<VersionResponse>(HttpMethod.Get, "/version"); 10 + }
+1
Iceshrimp.Frontend/Core/Services/ApiService.cs
··· 18 18 public readonly MiscControllerModel Misc = new(client); 19 19 public readonly ProfileControllerModel Profile = new(client); 20 20 public readonly FilterControllerModel Filters = new(client); 21 + public readonly VersionControllerModel Version = new(client); 21 22 22 23 public void SetBearerToken(string token) => client.SetToken(token); 23 24 }