Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
ASP.NET Web API base API route / route prefix? - C#
C
C#
•
3y ago
Kiel
ASP.NET Web API base API route / route prefix?
Is there a way to specify that I
'd like all my API routes to begin with a prefix
?
So that I can make
[Route("/upload")]
[Route("/upload")]
and have it be
/api/upload
/api/upload
, without having to prefix every single controller with
/api
/api
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
✅ ASP.Net Core Web API
C
C# / help
6mo ago
✅ asp.net web api connection refused
C
C# / help
2y ago
✅ ASP.NET Core Web Api + SignalR
C
C# / help
2y ago
✅ Authorization in ASP.NET Web Api
C
C# / help
2y ago