diff --git a/.vscode/launch.json b/.vscode/launch.json index 62465b2..7521fb0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,6 +13,21 @@ "program": "${workspaceFolder}/bin/Debug/netcoreapp2.2/qbridge.dll", "args": [], "cwd": "${workspaceFolder}", + "launchBrowser": { + "enabled": true, + //"args": "${auto-detect-url}/auth/", + "windows": { + "command": "cmd.exe", + //"args": "/C start http://localhost:7575/api/v8/" + "args": "/C start ${auto-detect-url}/qbridge/", + }, + "osx": { + "command": "open" + }, + "linux": { + "command": "xdg-open" + } + }, "stopAtEntry": false, // Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser "serverReadyAction": { diff --git a/Controllers/BridgeController.cs b/Controllers/AuthController.cs similarity index 97% rename from Controllers/BridgeController.cs rename to Controllers/AuthController.cs index 01755f2..abd00d1 100644 --- a/Controllers/BridgeController.cs +++ b/Controllers/AuthController.cs @@ -10,10 +10,10 @@ namespace qbridge.Controllers [Route("api/[controller]")] [ApiController] [Produces("application/json")] - public class BridgeController : ControllerBase + public class AuthController : ControllerBase { - public BridgeController() + public AuthController() { } diff --git a/Controllers/QBridgeController.cs b/Controllers/QBridgeController.cs new file mode 100644 index 0000000..3a04f4e --- /dev/null +++ b/Controllers/QBridgeController.cs @@ -0,0 +1,90 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + + +namespace qbridge.Controllers +{ + [Route("[controller]")] + [ApiController] + [Produces("application/json")] + public class QBridgeController : ControllerBase + { + + public QBridgeController() + { + + } + + [HttpGet] + public ContentResult Index() + { + var errorBlock = string.Empty; + + var resp = $@" +
+ + +