From 22fbb522d20eb67a3a0dd6df0b7b0a5a14cf86f1 Mon Sep 17 00:00:00 2001 From: Ling0925 <2449858657a@gmail.com> Date: Wed, 9 Oct 2024 17:09:38 +0800 Subject: [PATCH] Fix router address to action --- LFlow.Home/Controllers/HomeControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LFlow.Home/Controllers/HomeControl.cs b/LFlow.Home/Controllers/HomeControl.cs index 2f1787b..04d924a 100644 --- a/LFlow.Home/Controllers/HomeControl.cs +++ b/LFlow.Home/Controllers/HomeControl.cs @@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Mvc; namespace LFlow.Home.Controllers; public class HomeController(IHomeService service) : BaseController { - [HttpGet("/[controller]/")] + [HttpGet] public string Home(string id) { return service?.GetById(id)?.ToString() ?? "No service";