Dashboard: Allows the d-solo route to be used without slug (#19640)

Allows the d-solo route to be used with UID and without 
a slug.

Fixes #11617
This commit is contained in:
Amarnath Karthi
2019-10-14 18:21:44 +02:00
committed by Marcus Efraimsson
parent 08f01a6c4f
commit 74557a4c40
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -71,6 +71,7 @@ func (hs *HTTPServer) registerRoutes() {
r.Get("/dashboard/script/*", reqSignedIn, hs.Index)
r.Get("/dashboard-solo/snapshot/*", hs.Index)
r.Get("/d-solo/:uid/:slug", reqSignedIn, hs.Index)
r.Get("/d-solo/:uid", reqSignedIn, hs.Index)
r.Get("/dashboard-solo/db/:slug", reqSignedIn, redirectFromLegacyDashboardSoloURL, hs.Index)
r.Get("/dashboard-solo/script/*", reqSignedIn, hs.Index)
r.Get("/import/dashboard", reqSignedIn, hs.Index)