All checks were successful
Game Ideas deploy / build-test-deploy (push) Successful in 1m27s
Co-authored-by: Maxime Adler <madler@sqli.com> Reviewed-on: #48
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using GameIdeas.BlazorApp.Helpers;
|
|
using GameIdeas.Shared.Dto;
|
|
|
|
namespace GameIdeas.BlazorApp.Shared.Constants;
|
|
|
|
public static class Endpoints
|
|
{
|
|
public static class Game
|
|
{
|
|
public const string Create = "api/Game/Create";
|
|
public static string Fetch(GameFilterDto filter) => $"api/Game?{UrlHelper.BuildUrlParams(filter)}";
|
|
public static string FetchById(int gameId) => $"api/Game/{gameId}";
|
|
public static string Delete(int gameId) => $"api/Game/Delete/{gameId}";
|
|
public const string Update = "api/Game/Update";
|
|
}
|
|
|
|
public static class Category
|
|
{
|
|
public const string AllCategories = "api/Category/All";
|
|
}
|
|
|
|
public static class Auth
|
|
{
|
|
public const string Login = "api/User/Login";
|
|
}
|
|
|
|
public static class User
|
|
{
|
|
public static string Fetch(UserFilterDto filter) => $"api/User?{UrlHelper.BuildUrlParams(filter)}";
|
|
public const string Roles = "api/User/Roles";
|
|
public const string Create = "api/User/Create";
|
|
public static string Delete(string userId) => $"api/User/Delete/{userId}";
|
|
public static string Update(string userId) => $"api/User/Update/{userId}";
|
|
|
|
}
|
|
}
|