Class FallbackRoutes
Namespace: TecnoPack.WebServer.Routes
Assembly: CO0002_Templ_FlowpackHMI_V00_26_M.dll
Provides fallback routes for the web server, such as redirecting default requests to a dashboard or main page.
public class FallbackRoutes
Inheritance
object ← FallbackRoutes
Methods
MainFallbackToDashboardRoute(HttpContextBase)
Handles requests to the root path ("/") and redirects them to the dashboard.
[WebRoute(HttpMethod.GET, "/")]
public static Task MainFallbackToDashboardRoute(HttpContextBase ctx)
Parameters
ctx HttpContextBase
The HTTP context representing the incoming request and outgoing response.
Returns
Task
A task representing the asynchronous operation.
Remarks
This route sends an HTTP 302 (Found) response with a Location header
pointing to /dashboard, effectively redirecting the client.