예제 #1
0
 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");
 }
예제 #2
0
 public HomeController(RiwgyDbContext context, IConfiguration _config)
 {
     _context   = context;
     _homeUrl   = _config.GetValue <string>("HomeRedirect");
     _portalUrl = _config.GetValue <string>("Portal");
 }