and another
This commit is contained in:
@@ -37,7 +37,7 @@ public class AuthService
|
||||
Console.WriteLine($"=== ValidateWithBackend: Sending Google credential for {email} ===");
|
||||
|
||||
// Wyślij Google credential do backendu
|
||||
var response = await _httpClient.PostAsJsonAsync("/Auth/apiToken", googleCredential);
|
||||
var response = await _httpClient.PostAsJsonAsync("Auth/apiToken", googleCredential);
|
||||
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ public class LayerService
|
||||
{
|
||||
// Calculate start index from page number (page 1 = start 0, page 2 = start 50, etc.)
|
||||
var start = (filterRequest.Page - 1) * filterRequest.PageSize;
|
||||
var query = $"/Layers?start={start}&limit={filterRequest.PageSize}";
|
||||
var query = $"Layers?start={start}&limit={filterRequest.PageSize}";
|
||||
|
||||
if (!string.IsNullOrEmpty(filterRequest.Search))
|
||||
query += $"&name={Uri.EscapeDataString(filterRequest.Search)}";
|
||||
@@ -44,7 +44,7 @@ public class LayerService
|
||||
|
||||
public async Task<LayerDto?> GetLayerByIdAsync(Guid id)
|
||||
{
|
||||
var response = await _httpClient.GetAsync($"/Layers/{id}");
|
||||
var response = await _httpClient.GetAsync($"Layers/{id}");
|
||||
|
||||
if (!response.IsSuccessStatusCode)
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user