diff --git a/Classes/RestService.cs b/Classes/ApiService.cs
similarity index 99%
rename from Classes/RestService.cs
rename to Classes/ApiService.cs
index 9a372f7..2863a2b 100644
--- a/Classes/RestService.cs
+++ b/Classes/ApiService.cs
@@ -5,16 +5,15 @@ using System.Diagnostics;
using System.Net.Http.Json;
using System.Text;
using System.Text.Json;
-using System.Text.RegularExpressions;
namespace Neighbourhood.omg.lol
{
- public class RestService {
+ public class ApiService {
HttpClient _client;
JsonSerializerOptions _serializerOptions;
public const string BaseUrl = "https://api.omg.lol";
- public RestService(string? token = null) {
+ public ApiService(string? token = null) {
_client = new HttpClient();
_client.BaseAddress = new Uri(BaseUrl);
_client.DefaultRequestHeaders.UserAgent.Add(new System.Net.Http.Headers.ProductInfoHeaderValue(App.Name, App.Version));
diff --git a/Classes/State.cs b/Classes/State.cs
index 13eee09..eb56aa9 100644
--- a/Classes/State.cs
+++ b/Classes/State.cs
@@ -155,9 +155,9 @@ namespace Neighbourhood.omg.lol {
}
// api service
- private RestService api { get; set; }
+ private ApiService api { get; set; }
- public State(RestService restService) {
+ public State(ApiService restService) {
api = restService;
}
diff --git a/Components/EditPicDialog.razor b/Components/EditPicDialog.razor
index 1dcaeb2..aef5260 100644
--- a/Components/EditPicDialog.razor
+++ b/Components/EditPicDialog.razor
@@ -1,6 +1,6 @@
@inject IJSRuntime JS
@inject State State
-@inject RestService api
+@inject ApiService api