24 lines
591 B
C#
24 lines
591 B
C#
using GameIdeas.BlazorApp.Helpers;
|
|
using GameIdeas.Shared.Dto;
|
|
|
|
namespace GameIdeas.BlazorApp.Shared.Constants;
|
|
|
|
public static class Endpoints
|
|
{
|
|
public static class Game
|
|
{
|
|
public static readonly string Create = "api/Game/Create";
|
|
public static string Fetch(GameFilterDto filter) => $"api/Game?{UrlHelper.BuildUrlParams(filter)}";
|
|
}
|
|
|
|
public static class Category
|
|
{
|
|
public static readonly string AllCategories = "api/Category/All";
|
|
}
|
|
|
|
public static class Auth
|
|
{
|
|
public static readonly string Login = "api/User/Login";
|
|
}
|
|
}
|