1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Added verification page for TKNK

This commit is contained in:
Uncled1023 2016-12-12 20:14:55 -08:00
parent e39cc27a90
commit 7345330493
4 changed files with 35 additions and 0 deletions

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);
}
}
}

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(

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>

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" />