Moved Users controller to Identity area

pull/81/head
Halil İbrahim Kalkan 8 years ago
parent 622deac5bb
commit 18c3ac98e9

@ -60,6 +60,10 @@ namespace AbpDesk.Web.Mvc
app.UseMvc(routes =>
{
routes.MapRoute(
name: "defaultWithArea",
template: "{area}/{controller=Home}/{action=Index}/{id?}");
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");

@ -0,0 +1,4 @@
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
@addTagHelper *, AbpDesk.Web.Mvc

@ -0,0 +1,3 @@
@{
Layout = "~/Views/Shared/_AppLayout.cshtml";
}

@ -15,7 +15,7 @@ namespace Volo.Abp.Identity.Web
context.Menu
.AddItem(
new ApplicationMenuItem("Identity", "Identity")
.AddItem(new ApplicationMenuItem("Users", "Users", url: "/Users"))
.AddItem(new ApplicationMenuItem("Users", "Users", url: "/Identity/Users"))
);
return Task.CompletedTask;

@ -23,9 +23,9 @@ namespace Volo.Abp.Identity.Web
{
options.Sources.Add(
new EmbeddedFileSet(
"/Views/",
"/Areas/",
GetType().GetTypeInfo().Assembly,
"Volo.Abp.Identity.Web.Views"
"Volo.Abp.Identity.Web.Areas"
)
);
});

@ -2,9 +2,9 @@
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc;
namespace Volo.Abp.Identity.Web.Controllers
namespace Volo.Abp.Identity.Web.Areas.Identity.Controllers
{
//TODO: to a seperated area, named Identity!
[Area("Identity")]
public class UsersController : AbpController
{
private readonly IUserAppService _userAppService;

@ -16,7 +16,7 @@
"buildOptions": {
"embed": {
"include": [
"Views/**/*.*"
"Areas/**/*.*"
]
}
}

Loading…
Cancel
Save