mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-04-19 23:27:13 -05:00
14 lines
570 B
C#
14 lines
570 B
C#
namespace TableturfBattleServer;
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
|
|
internal class ApiEndpointAttribute(ApiEndpointNamespace endpointNamespace, string path, string allowedMethod) : Attribute {
|
|
public ApiEndpointNamespace Namespace { get; } = endpointNamespace;
|
|
public string Path { get; } = path;
|
|
public string AllowedMethod { get; } = allowedMethod;
|
|
|
|
public ApiEndpointAttribute(string path, string allowedMethod) : this(ApiEndpointNamespace.ApiRoot, path, allowedMethod) { }
|
|
}
|
|
|
|
internal enum ApiEndpointNamespace {
|
|
ApiRoot,
|
|
Game
|
|
} |