All checks were successful
Game Ideas deploy / build-test-deploy (push) Successful in 1m24s
Reviewed-on: #41
35 lines
1.0 KiB
C#
35 lines
1.0 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 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}";
|
|
|
|
}
|
|
}
|