aboutsummaryrefslogtreecommitdiff
path: root/plugins/VNLib.Plugins.Essentials.Content.Routing/src
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-03-25 14:25:21 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-03-25 14:25:21 -0400
commit1dc1ac2e53f25528aacd1510da928d5f56e3dad7 (patch)
treece8ed59ec116fe615f4bdb70099ac641da3f0153 /plugins/VNLib.Plugins.Essentials.Content.Routing/src
parent78901f761e5b8358d02d1841bee4c60d97c94760 (diff)
Defer cors to host/middleware/user code
Diffstat (limited to 'plugins/VNLib.Plugins.Essentials.Content.Routing/src')
-rw-r--r--plugins/VNLib.Plugins.Essentials.Content.Routing/src/Router.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/VNLib.Plugins.Essentials.Content.Routing/src/Router.cs b/plugins/VNLib.Plugins.Essentials.Content.Routing/src/Router.cs
index 31f1e0e..fdf5f59 100644
--- a/plugins/VNLib.Plugins.Essentials.Content.Routing/src/Router.cs
+++ b/plugins/VNLib.Plugins.Essentials.Content.Routing/src/Router.cs
@@ -54,6 +54,12 @@ namespace VNLib.Plugins.Essentials.Content.Routing
RouteTable = new();
}
+ public Router(PluginBase plugin, IConfigScope config)
+ {
+ Store = new(plugin.GetContextOptions());
+ RouteTable = new();
+ }
+
///<inheritdoc/>
public async ValueTask<FileProcessArgs> RouteAsync(HttpEntity entity)
{