diff --git a/Selector.CLI/Selector.CLI.csproj b/Selector.CLI/Selector.CLI.csproj
index 92a2b26..e5ac509 100644
--- a/Selector.CLI/Selector.CLI.csproj
+++ b/Selector.CLI/Selector.CLI.csproj
@@ -20,6 +20,7 @@
+
diff --git a/Selector.Model/Selector.Model.csproj b/Selector.Model/Selector.Model.csproj
index ca4ed74..b71519e 100644
--- a/Selector.Model/Selector.Model.csproj
+++ b/Selector.Model/Selector.Model.csproj
@@ -6,10 +6,14 @@
latest
+
+
+
+
-
+
diff --git a/Selector.Web/Controller/TestController.cs b/Selector.Web/Controller/TestController.cs
new file mode 100644
index 0000000..71a2268
--- /dev/null
+++ b/Selector.Web/Controller/TestController.cs
@@ -0,0 +1,16 @@
+using System;
+using Microsoft.AspNetCore.Mvc;
+
+namespace Selector.Web.Controller {
+
+ [ApiController]
+ [Route("api/[controller]")]
+ public class TestController {
+
+ [HttpGet]
+ public ActionResult Get()
+ {
+ return "Hello World!";
+ }
+ }
+}
\ No newline at end of file
diff --git a/Selector.Web/Pages/Shared/_Layout.cshtml b/Selector.Web/Pages/Shared/_Layout.cshtml
index 4f18fe4..daeaa43 100644
--- a/Selector.Web/Pages/Shared/_Layout.cshtml
+++ b/Selector.Web/Pages/Shared/_Layout.cshtml
@@ -3,9 +3,8 @@
- @ViewData["Title"] - Selector.Web
+ @ViewData["Title"] - Selector
-
diff --git a/Selector.Web/Selector.Web.csproj b/Selector.Web/Selector.Web.csproj
index d00eb93..c676c98 100644
--- a/Selector.Web/Selector.Web.csproj
+++ b/Selector.Web/Selector.Web.csproj
@@ -8,6 +8,7 @@
+
@@ -16,6 +17,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
+
diff --git a/Selector.Web/Startup.cs b/Selector.Web/Startup.cs
index 75c8b13..70b3923 100644
--- a/Selector.Web/Startup.cs
+++ b/Selector.Web/Startup.cs
@@ -24,6 +24,7 @@ namespace Selector.Web
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
+ services.AddControllers();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@@ -50,6 +51,7 @@ namespace Selector.Web
app.UseEndpoints(endpoints =>
{
endpoints.MapRazorPages();
+ endpoints.MapControllers();
});
}
}
diff --git a/Selector.Web/package.json b/Selector.Web/package.json
index 5e82305..7abafea 100644
--- a/Selector.Web/package.json
+++ b/Selector.Web/package.json
@@ -1,6 +1,7 @@
{
"name": "selector.web",
"version": "1.0.0",
+ "private": true,
"description": "",
"main": "index.ts",
"scripts": {