mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Fixed routing and added links to dashboard
This commit is contained in:
parent
35d411ac92
commit
2b14547c25
@ -83,9 +83,9 @@ namespace Teknik.Areas.Admin.Controllers
|
||||
|
||||
[HttpGet]
|
||||
[TrackPageView]
|
||||
public IActionResult ShoretenedUrlSearch()
|
||||
public IActionResult ShortenedUrlSearch()
|
||||
{
|
||||
UploadSearchViewModel model = new UploadSearchViewModel();
|
||||
ShortenedUrlSearchViewModel model = new ShortenedUrlSearchViewModel();
|
||||
return View(model);
|
||||
}
|
||||
|
||||
|
@ -15,6 +15,16 @@
|
||||
<a href="@Url.SubRouteUrl("admin", "Admin.UploadSearch")">Upload Search</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-10 col-sm-offset-1">
|
||||
<a href="@Url.SubRouteUrl("admin", "Admin.PasteSearch")">Paste Search</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-10 col-sm-offset-1">
|
||||
<a href="@Url.SubRouteUrl("admin", "Admin.ShortenedUrlSearch")">Shortened Url Search</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-10 col-sm-offset-1">
|
||||
<button type="button" class="btn btn-info" id="createInviteCode">Create Invite Code</button>
|
||||
|
@ -114,6 +114,20 @@ namespace Teknik
|
||||
template: "Search/Uploads",
|
||||
defaults: new { area = "Admin", controller = "Admin", action = "UploadSearch" }
|
||||
);
|
||||
routes.MapSubdomainRoute(
|
||||
name: "Admin.PasteSearch",
|
||||
domains: new List<string>() { config.Host },
|
||||
subDomains: new List<string>() { "admin" },
|
||||
template: "Search/Pastes",
|
||||
defaults: new { area = "Admin", controller = "Admin", action = "PasteSearch" }
|
||||
);
|
||||
routes.MapSubdomainRoute(
|
||||
name: "Admin.ShortenedUrlSearch",
|
||||
domains: new List<string>() { config.Host },
|
||||
subDomains: new List<string>() { "admin" },
|
||||
template: "Search/ShortenedUrls",
|
||||
defaults: new { area = "Admin", controller = "Admin", action = "ShortenedUrlSearch" }
|
||||
);
|
||||
routes.MapSubdomainRoute(
|
||||
name: "Admin.UserInfo",
|
||||
domains: new List<string>() { config.Host },
|
||||
|
Loading…
Reference in New Issue
Block a user