Skip to content

Commit

Permalink
Merge pull request #694 from mixcore/bugfix/add_missing_endpoints
Browse files Browse the repository at this point in the history
Add missing endpoints
  • Loading branch information
truongtphat authored Sep 15, 2023
2 parents 2a73f92 + b6ce1ac commit 42d0098
Show file tree
Hide file tree
Showing 8 changed files with 4,930 additions and 4,748 deletions.
9,496 changes: 4,748 additions & 4,748 deletions src/applications/Mixcore/wwwroot/mix-app/js/app-portal.min.js

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions src/modules/mix.portal/Controllers/MixDatabaseContextController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Mvc;
using Mix.Lib.Interfaces;
using Mix.SignalR.Interfaces;

namespace Mix.Portal.Controllers
{
[Route("api/v2/rest/mix-portal/mix-database-context")]
[ApiController]
[MixAuthorize(MixRoles.Owner)]
public class MixDatabaseContextController : MixRestfulApiControllerBase<MixDatabaseContextViewModel, MixCmsContext, MixDatabaseContext, int>
{
public MixDatabaseContextController(
IHttpContextAccessor httpContextAccessor,
IConfiguration configuration,
MixCacheService cacheService,
TranslatorService translator,
MixIdentityService mixIdentityService,
UnitOfWorkInfo<MixCmsContext> uow,
IQueueService<MessageQueueModel> queueService,
IPortalHubClientService portalHub,
IMixTenantService mixTenantService)
: base(httpContextAccessor, configuration, cacheService, translator, mixIdentityService, uow, queueService, portalHub, mixTenantService)
{
}
}
}
26 changes: 26 additions & 0 deletions src/modules/mix.portal/Controllers/MixModuleContentController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Mvc;
using Mix.Lib.Interfaces;
using Mix.SignalR.Interfaces;

namespace Mix.Portal.Controllers
{
[Route("api/v2/rest/mix-portal/mix-module-content")]
[ApiController]
[MixAuthorize(MixRoles.Owner)]
public class MixModuleController : MixRestfulApiControllerBase<MixModuleContentViewModel, MixCmsContext, MixModuleContent, int>
{
public MixModuleController(
IHttpContextAccessor httpContextAccessor,
IConfiguration configuration,
MixCacheService cacheService,
TranslatorService translator,
MixIdentityService mixIdentityService,
UnitOfWorkInfo<MixCmsContext> uow,
IQueueService<MessageQueueModel> queueService,
IPortalHubClientService portalHub,
IMixTenantService mixTenantService)
: base(httpContextAccessor, configuration, cacheService, translator, mixIdentityService, uow, queueService, portalHub, mixTenantService)
{
}
}
}
26 changes: 26 additions & 0 deletions src/modules/mix.portal/Controllers/MixModuleController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Mvc;
using Mix.Lib.Interfaces;
using Mix.SignalR.Interfaces;

namespace Mix.Portal.Controllers
{
[Route("api/v2/rest/mix-portal/mix-module")]
[ApiController]
[MixAuthorize(MixRoles.Owner)]
public class MixModuleContentController : MixRestfulApiControllerBase<MixModuleViewModel, MixCmsContext, MixModule, int>
{
public MixModuleContentController(
IHttpContextAccessor httpContextAccessor,
IConfiguration configuration,
MixCacheService cacheService,
TranslatorService translator,
MixIdentityService mixIdentityService,
UnitOfWorkInfo<MixCmsContext> uow,
IQueueService<MessageQueueModel> queueService,
IPortalHubClientService portalHub,
IMixTenantService mixTenantService)
: base(httpContextAccessor, configuration, cacheService, translator, mixIdentityService, uow, queueService, portalHub, mixTenantService)
{
}
}
}
26 changes: 26 additions & 0 deletions src/modules/mix.portal/Controllers/MixPageController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Mvc;
using Mix.Lib.Interfaces;
using Mix.SignalR.Interfaces;

namespace Mix.Portal.Controllers
{
[Route("api/v2/rest/mix-portal/mix-page")]
[ApiController]
[MixAuthorize(MixRoles.Owner)]
public class MixPageController : MixRestfulApiControllerBase<MixPageContentViewModel, MixCmsContext, MixPageContent, int>
{
public MixPageController(
IHttpContextAccessor httpContextAccessor,
IConfiguration configuration,
MixCacheService cacheService,
TranslatorService translator,
MixIdentityService mixIdentityService,
UnitOfWorkInfo<MixCmsContext> uow,
IQueueService<MessageQueueModel> queueService,
IPortalHubClientService portalHub,
IMixTenantService mixTenantService)
: base(httpContextAccessor, configuration, cacheService, translator, mixIdentityService, uow, queueService, portalHub, mixTenantService)
{
}
}
}
26 changes: 26 additions & 0 deletions src/modules/mix.portal/Controllers/MixPostController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Mvc;
using Mix.Lib.Interfaces;
using Mix.SignalR.Interfaces;

namespace Mix.Portal.Controllers
{
[Route("api/v2/rest/mix-portal/mix-post")]
[ApiController]
[MixAuthorize(MixRoles.Owner)]
public class MixPostController : MixRestfulApiControllerBase<MixPostContentViewModel, MixCmsContext, MixPostContent, int>
{
public MixPostController(
IHttpContextAccessor httpContextAccessor,
IConfiguration configuration,
MixCacheService cacheService,
TranslatorService translator,
MixIdentityService mixIdentityService,
UnitOfWorkInfo<MixCmsContext> uow,
IQueueService<MessageQueueModel> queueService,
IPortalHubClientService portalHub,
IMixTenantService mixTenantService)
: base(httpContextAccessor, configuration, cacheService, translator, mixIdentityService, uow, queueService, portalHub, mixTenantService)
{
}
}
}
26 changes: 26 additions & 0 deletions src/modules/mix.portal/Controllers/MixUrlAliasController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Mvc;
using Mix.Lib.Interfaces;
using Mix.SignalR.Interfaces;

namespace Mix.Portal.Controllers
{
[Route("api/v2/rest/mix-portal/mix-url-alias")]
[ApiController]
[MixAuthorize(MixRoles.Owner)]
public class MixUrlAliasController : MixRestfulApiControllerBase<MixUrlAliasViewModel, MixCmsContext, MixUrlAlias, int>
{
public MixUrlAliasController(
IHttpContextAccessor httpContextAccessor,
IConfiguration configuration,
MixCacheService cacheService,
TranslatorService translator,
MixIdentityService mixIdentityService,
UnitOfWorkInfo<MixCmsContext> uow,
IQueueService<MessageQueueModel> queueService,
IPortalHubClientService portalHub,
IMixTenantService mixTenantService)
: base(httpContextAccessor, configuration, cacheService, translator, mixIdentityService, uow, queueService, portalHub, mixTenantService)
{
}
}
}
26 changes: 26 additions & 0 deletions src/modules/mix.portal/Controllers/MixViewTemplateController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Mvc;
using Mix.Lib.Interfaces;
using Mix.SignalR.Interfaces;

namespace Mix.Portal.Controllers
{
[Route("api/v2/rest/mix-portal/mix-view-template")]
[ApiController]
[MixAuthorize(MixRoles.Owner)]
public class MixViewTemplateController : MixRestfulApiControllerBase<MixViewTemplateViewModel, MixCmsContext, MixTemplate, int>
{
public MixViewTemplateController(
IHttpContextAccessor httpContextAccessor,
IConfiguration configuration,
MixCacheService cacheService,
TranslatorService translator,
MixIdentityService mixIdentityService,
UnitOfWorkInfo<MixCmsContext> uow,
IQueueService<MessageQueueModel> queueService,
IPortalHubClientService portalHub,
IMixTenantService mixTenantService)
: base(httpContextAccessor, configuration, cacheService, translator, mixIdentityService, uow, queueService, portalHub, mixTenantService)
{
}
}
}

0 comments on commit 42d0098

Please sign in to comment.