public LinkShortenController(RiwgyDbContext context, IConfiguration _config) { _context = context; _urlMatcher = new Regex(URL_REGEX, RegexOptions.Compiled | RegexOptions.IgnoreCase); _riwgyMatcher = new Regex(RWIGY_REGEX, RegexOptions.Compiled | RegexOptions.IgnoreCase); _domain = _config.GetValue <string>("Domain"); }
public HomeController(RiwgyDbContext context, IConfiguration _config) { _context = context; _homeUrl = _config.GetValue <string>("HomeRedirect"); _portalUrl = _config.GetValue <string>("Portal"); }