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:
parent
e39cc27a90
commit
7345330493
@ -69,5 +69,13 @@ namespace Teknik.Areas.Shortener.Controllers
|
|||||||
}
|
}
|
||||||
return Json(new { error = "Must be a valid Url" });
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -43,6 +43,14 @@ namespace Teknik.Areas.Shortener
|
|||||||
new { controller = "Shortener", action = "RedirectToUrl" }, // Parameter defaults
|
new { controller = "Shortener", action = "RedirectToUrl" }, // Parameter defaults
|
||||||
new[] { typeof(Controllers.ShortenerController).Namespace }
|
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
|
// Register Script Bundles
|
||||||
BundleTable.Bundles.Add(new CdnScriptBundle("~/bundles/shortener", config.CdnHost).Include(
|
BundleTable.Bundles.Add(new CdnScriptBundle("~/bundles/shortener", config.CdnHost).Include(
|
||||||
|
18
Teknik/Areas/Shortener/Views/Shortener/View.cshtml
Normal file
18
Teknik/Areas/Shortener/Views/Shortener/View.cshtml
Normal 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>
|
@ -590,6 +590,7 @@
|
|||||||
<Content Include="Areas\Admin\Views\_ViewStart.cshtml" />
|
<Content Include="Areas\Admin\Views\_ViewStart.cshtml" />
|
||||||
<Content Include="App_Data\MachineKey.config" />
|
<Content Include="App_Data\MachineKey.config" />
|
||||||
<Content Include="Areas\Admin\Views\Admin\UserInfo.cshtml" />
|
<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 Dev.pubxml" />
|
||||||
<None Include="Properties\PublishProfiles\Teknik Production.pubxml" />
|
<None Include="Properties\PublishProfiles\Teknik Production.pubxml" />
|
||||||
<None Include="Scripts\jquery-2.1.4.intellisense.js" />
|
<None Include="Scripts\jquery-2.1.4.intellisense.js" />
|
||||||
|
Loading…
Reference in New Issue
Block a user