mirror of https://github.com/abpframework/abp
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.
23 lines
578 B
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);
|
|
}
|
|
}
|
|
}
|