Browse Source

Added verification page for TKNK

tags/2.0.6
Teknikode 3 years ago
parent
commit
7345330493

+ 8
- 0
Teknik/Areas/Shortener/Controllers/ShortenerController.cs View File

@@ -69,5 +69,13 @@ namespace Teknik.Areas.Shortener.Controllers
}
return Json(new { error = "Must be a valid Url" });
}

[AllowAnonymous]
public ActionResult Verify()
{
ViewBag.Title = "Url Shortener Verification - " + Config.Title;
ShortenViewModel model = new ShortenViewModel();
return View(model);
}
}
}

+ 8
- 0
Teknik/Areas/Shortener/ShortenerAreaRegistration.cs View File

@@ -43,6 +43,14 @@ namespace Teknik.Areas.Shortener
new { controller = "Shortener", action = "RedirectToUrl" }, // Parameter defaults
new[] { typeof(Controllers.ShortenerController).Namespace }
);
context.MapSubdomainRoute(
"Shortener.Verify", // Route name
new List<string>() { string.Empty }, // Subdomains
new List<string>() { config.ShortenerConfig.ShortenerHost }, // domains
"", // URL with parameters
new { controller = "Shortener", action = "Verify" }, // Parameter defaults
new[] { typeof(Controllers.ShortenerController).Namespace }
);

// Register Script Bundles
BundleTable.Bundles.Add(new CdnScriptBundle("~/bundles/shortener", config.CdnHost).Include(

+ 18
- 0
Teknik/Areas/Shortener/Views/Shortener/View.cshtml View File

@@ -0,0 +1,18 @@

@{
Layout = null;
}

<!DOCTYPE html>

<html>
<head>
<meta name="google-site-verification" content="GMpJN2A-MI13weGMlj3OMTDuFzLTw9kRntfw3P9FLfY" />
<title>View</title>
</head>
<body>
<div>
Verification
</div>
</body>
</html>

+ 1
- 0
Teknik/Teknik.csproj View File

@@ -590,6 +590,7 @@
<Content Include="Areas\Admin\Views\_ViewStart.cshtml" />
<Content Include="App_Data\MachineKey.config" />
<Content Include="Areas\Admin\Views\Admin\UserInfo.cshtml" />
<Content Include="Areas\Shortener\Views\Shortener\View.cshtml" />
<None Include="Properties\PublishProfiles\Teknik Dev.pubxml" />
<None Include="Properties\PublishProfiles\Teknik Production.pubxml" />
<None Include="Scripts\jquery-2.1.4.intellisense.js" />

Loading…
Cancel
Save