mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-11-27 07:06:03 +01:00
Add API v2 endpoints to manage cluster workers and the primary WireGuard
This commit is contained in:
@@ -13,6 +13,7 @@ class ApiKeyForm(forms.ModelForm):
|
||||
fields = [
|
||||
'name',
|
||||
'allowed_instances',
|
||||
'manage_cluster',
|
||||
#'allow_restart',
|
||||
#'allow_reload',
|
||||
#'allow_export',
|
||||
@@ -54,6 +55,10 @@ class ApiKeyForm(forms.ModelForm):
|
||||
# Column('allow_export', css_class='form-group col-md-4 mb-0'),
|
||||
# css_class='form-row'
|
||||
#),
|
||||
Row(
|
||||
Column('manage_cluster', css_class='form-group col-md-12 mb-0'),
|
||||
css_class='form-row'
|
||||
),
|
||||
Row(
|
||||
Column('enabled', css_class='form-group col-md-12 mb-0'),
|
||||
css_class='form-row'
|
||||
|
||||
Reference in New Issue
Block a user