Got at least one data fetching method working; turns out, we can't use a patched LogicStack to get the data
This commit is contained in:
31
Vendor/EmbedIO-3.5.2/Routing/BaseRouteAttribute.cs
vendored
Normal file
31
Vendor/EmbedIO-3.5.2/Routing/BaseRouteAttribute.cs
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
|
||||
namespace EmbedIO.Routing
|
||||
{
|
||||
/// <summary>
|
||||
/// Decorate methods within controllers with this attribute in order to make them callable from the Web API Module
|
||||
/// Method Must match the WebServerModule.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
|
||||
public class BaseRouteAttribute : RouteAttribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BaseRouteAttribute"/> class.
|
||||
/// </summary>
|
||||
/// <param name="verb">The verb.</param>
|
||||
/// <param name="route">The route.</param>
|
||||
/// <exception cref="ArgumentNullException"><paramref name="route"/> is <see langword="null"/>.</exception>
|
||||
/// <exception cref="ArgumentException">
|
||||
/// <para><paramref name="route"/> is empty.</para>
|
||||
/// <para>- or -</para>
|
||||
/// <para><paramref name="route"/> does not start with a slash (<c>/</c>) character.</para>
|
||||
/// <para>- or -</para>
|
||||
/// <para><paramref name="route"/> does not comply with route syntax.</para>
|
||||
/// </exception>
|
||||
/// <seealso cref="Routing.Route.IsValid"/>
|
||||
public BaseRouteAttribute(HttpVerbs verb, string route)
|
||||
: base(verb, route, true)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user