mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 11:46:49 +00:00
refactor(console): a console's URL names its compute and VM
The console page is /console/<compute>/<uuid>/ with the view and display options in the query. It was /console/?token=<compute>-<uuid>, a "token" that was only the VM's address, parsed alongside a signed token that no link ever sent. The list's console button takes the VM's UUID from the database instead of asking libvirt for each row, and no longer defines a global function per row.
This commit is contained in:
parent
1a6dcc3e54
commit
f6d4886d1b
5 changed files with 48 additions and 102 deletions
|
|
@ -26,7 +26,7 @@ urlpatterns = [
|
|||
path("accounts/", include("accounts.urls")),
|
||||
path("appsettings/", appsettings, name="appsettings"),
|
||||
path("computes/", include("computes.urls")),
|
||||
path("console/", console, name="console"),
|
||||
path("console/<int:compute_id>/<str:uuid>/", console, name="console"),
|
||||
path("datasource/", include("datasource.urls")),
|
||||
path("instances/", include("instances.urls")),
|
||||
path("i18n/", include("django.conf.urls.i18n")),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue