Skip to content

Commit cce4c68

Browse files
authored
Help swagger to work behind a reverse proxy
It shows > Failed to load API definition. > Fetch error > Not Found /swagger/v2/swagger.json otherwise.
1 parent e0908e7 commit cce4c68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ProjectTemplates/ReferenceProject/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public static class Constants
44
{
55
public static class Swagger
66
{
7-
public static string EndPoint => $"/swagger/{Version}/swagger.json";
7+
public static string EndPoint => $"../swagger/{Version}/swagger.json";
88
public static string ApiName => "My API";
99
public static string Version => "v1";
1010
}

0 commit comments

Comments
 (0)