From bbba888f3bca270b476ab2a3606f51089dac071c Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期二, 09 九月 2025 14:17:15 +0800
Subject: [PATCH] 1
---
WebAPI/App_Start/RouteConfig2.cs | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/WebAPI/App_Start/RouteConfig2.cs b/WebAPI/App_Start/RouteConfig2.cs
new file mode 100644
index 0000000..f28b371
--- /dev/null
+++ b/WebAPI/App_Start/RouteConfig2.cs
@@ -0,0 +1,24 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.Mvc;
+using System.Web.Routing;
+
+namespace WebAPI
+{
+ public class RouteConfig2
+ {
+ public static void RegisterRoutes(RouteCollection routes)
+ {
+ routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
+
+ routes.MapRoute(
+ name: "Default",
+ url: "{controller}/{action}/{id}",
+ defaults: new { action = "Index", id = UrlParameter.Optional }
+ );
+ }
+ }
+}
+
--
Gitblit v1.9.1