Skip to content

Commit

Permalink
Updated to rc004.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyButland committed Sep 23, 2021
1 parent 3e1afd7 commit d8a250f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 25 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,4 @@ ExamineIndexes/

# Solution
TestWebApp/
TestWebAppWithPackage/

30 changes: 8 additions & 22 deletions PersonalisationGroups/AppConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,22 @@ namespace Our.Umbraco.PersonalisationGroups
{
public static class AppConfiguration
{
public static IUmbracoEndpointBuilder UsePersonalisationGroupsEndpoints(this IUmbracoEndpointBuilder builder)
public static IUmbracoEndpointBuilderContext UsePersonalisationGroupsEndpoints(this IUmbracoEndpointBuilderContext builderContext)
{
const string controllersNamespace = "Our.Umbraco.PersonalisationGroups.Controllers";

builder.EndpointRouteBuilder.MapControllerRoute(
name: "Criteria methods",
pattern: "App_Plugins/PersonalisationGroups/Criteria",
defaults: new { controller = "Criteria", action = "Index" }
//namespaces: new[] { controllersNamespace }
);
builder.EndpointRouteBuilder.MapControllerRoute(
builderContext.EndpointRouteBuilder.MapControllerRoute(
name: "Criteria methods",
pattern: "App_Plugins/PersonalisationGroups/Criteria",
defaults: new { controller = "Criteria", action = "Index" }
//namespaces: new[] { controllersNamespace }
);
builder.EndpointRouteBuilder.MapControllerRoute(
defaults: new { controller = "Criteria", action = "Index" });
builderContext.EndpointRouteBuilder.MapControllerRoute(
name: "Geo location methods",
pattern: "App_Plugins/PersonalisationGroups/GeoLocation/{action}",
defaults: new { controller = "GeoLocation", action = "Index" }
//namespaces: new[] { controllersNamespace }
);
builder.EndpointRouteBuilder.MapControllerRoute(
defaults: new { controller = "GeoLocation", action = "Index" });
builderContext.EndpointRouteBuilder.MapControllerRoute(
name: "Member methods",
pattern: "App_Plugins/PersonalisationGroups/Member/{action}",
defaults: new { controller = "Member", action = "Index" }
//namespaces: new[] { controllersNamespace }
);
defaults: new { controller = "Member", action = "Index" });

return builder;
return builderContext;
}
}
}
4 changes: 2 additions & 2 deletions PersonalisationGroups/UmbracoPersonalisationGroups.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ContentTargetFolders>.</ContentTargetFolders>
<TargetFramework>net5.0</TargetFramework>
<PackageId>UmbracoPersonalisationGroups</PackageId>
<Version>3.0.0-beta-2</Version>
<Version>3.0.0-beta-3</Version>
<Authors>Andy Butland</Authors>
<Description>An Umbraco package supporting personalisation of content to different groups of site visitors.</Description>
<Copyright>2021 Andy Butland</Copyright>
Expand All @@ -18,7 +18,7 @@

<ItemGroup>
<PackageReference Include="MaxMind.GeoIP2" Version="4.0.1" />
<PackageReference Include="Umbraco.Cms.Web.Common" Version="9.0.0-rc001" />
<PackageReference Include="Umbraco.Cms.Web.Common" Version="9.0.0-rc004" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions UmbracoPersonalisationGroupsCore.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UmbracoPersonalisationGroup
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UmbracoPersonalisationGroups.Tests", "PersonalisationGroups.Tests\UmbracoPersonalisationGroups.Tests.csproj", "{4CDFDC2F-332E-4FF0-868F-AFA214563288}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestWebApp", "TestWebApp\TestWebApp.csproj", "{B75A6370-1971-45C9-8C34-5CE4CC8D1C3D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -21,6 +23,10 @@ Global
{4CDFDC2F-332E-4FF0-868F-AFA214563288}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4CDFDC2F-332E-4FF0-868F-AFA214563288}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4CDFDC2F-332E-4FF0-868F-AFA214563288}.Release|Any CPU.Build.0 = Release|Any CPU
{B75A6370-1971-45C9-8C34-5CE4CC8D1C3D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B75A6370-1971-45C9-8C34-5CE4CC8D1C3D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B75A6370-1971-45C9-8C34-5CE4CC8D1C3D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B75A6370-1971-45C9-8C34-5CE4CC8D1C3D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit d8a250f

Please sign in to comment.