You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/modules/blogging/app/Volo.BloggingTestApp/Controllers/HomeController.cs

23 lines
578 B

using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Blogging;
namespace Volo.BloggingTestApp.Controllers
{
public class HomeController : AbpController
{
private readonly BloggingUrlOptions _blogOptions;
public HomeController(IOptions<BloggingUrlOptions> blogOptions)
{
_blogOptions = blogOptions.Value;
}
public ActionResult Index()
{
var urlPrefix = _blogOptions.RoutePrefix;
return Redirect(urlPrefix);
}
}
}