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]
|
[HttpGet]
|
||||||
[TrackPageView]
|
[TrackPageView]
|
||||||
public IActionResult ShoretenedUrlSearch()
|
public IActionResult ShortenedUrlSearch()
|
||||||
{
|
{
|
||||||
UploadSearchViewModel model = new UploadSearchViewModel();
|
ShortenedUrlSearchViewModel model = new ShortenedUrlSearchViewModel();
|
||||||
return View(model);
|
return View(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,6 +15,16 @@
|
|||||||
<a href="@Url.SubRouteUrl("admin", "Admin.UploadSearch")">Upload Search</a>
|
<a href="@Url.SubRouteUrl("admin", "Admin.UploadSearch")">Upload Search</a>
|
||||||
</div>
|
</div>
|
||||||
</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="row">
|
||||||
<div class="col-sm-10 col-sm-offset-1">
|
<div class="col-sm-10 col-sm-offset-1">
|
||||||
<button type="button" class="btn btn-info" id="createInviteCode">Create Invite Code</button>
|
<button type="button" class="btn btn-info" id="createInviteCode">Create Invite Code</button>
|
||||||
|
@ -114,6 +114,20 @@ namespace Teknik
|
|||||||
template: "Search/Uploads",
|
template: "Search/Uploads",
|
||||||
defaults: new { area = "Admin", controller = "Admin", action = "UploadSearch" }
|
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(
|
routes.MapSubdomainRoute(
|
||||||
name: "Admin.UserInfo",
|
name: "Admin.UserInfo",
|
||||||
domains: new List<string>() { config.Host },
|
domains: new List<string>() { config.Host },
|
||||||
|
Loading…
Reference in New Issue
Block a user