Remove HTTPS requirement
This commit is contained in:
parent
68e0d500f7
commit
abb6d001ff
@ -17,7 +17,7 @@ type integrationCreateBody struct {
|
|||||||
PrivacyPolicyUrl *string `json:"privacy_policy_url" validate:"omitempty,url,max=255,startswith=https://"`
|
PrivacyPolicyUrl *string `json:"privacy_policy_url" validate:"omitempty,url,max=255,startswith=https://"`
|
||||||
|
|
||||||
Method string `json:"http_method" validate:"required,oneof=GET POST"`
|
Method string `json:"http_method" validate:"required,oneof=GET POST"`
|
||||||
WebhookUrl string `json:"webhook_url" validate:"required,url,max=255,startswith=https://"`
|
WebhookUrl string `json:"webhook_url" validate:"required,url,max=255,startswith=http"`
|
||||||
|
|
||||||
Secrets []struct {
|
Secrets []struct {
|
||||||
Name string `json:"name" validate:"required,min=1,max=32,excludesall=% "`
|
Name string `json:"name" validate:"required,min=1,max=32,excludesall=% "`
|
||||||
|
@ -18,7 +18,7 @@ type integrationUpdateBody struct {
|
|||||||
PrivacyPolicyUrl *string `json:"privacy_policy_url" validate:"omitempty,url,max=255,startswith=https://"`
|
PrivacyPolicyUrl *string `json:"privacy_policy_url" validate:"omitempty,url,max=255,startswith=https://"`
|
||||||
|
|
||||||
Method string `json:"http_method" validate:"required,oneof=GET POST"`
|
Method string `json:"http_method" validate:"required,oneof=GET POST"`
|
||||||
WebhookUrl string `json:"webhook_url" validate:"required,url,max=255,startswith=https://"`
|
WebhookUrl string `json:"webhook_url" validate:"required,url,max=255,startswith=http"`
|
||||||
|
|
||||||
Secrets []struct {
|
Secrets []struct {
|
||||||
Id int `json:"id" validate:"omitempty,min=1"`
|
Id int `json:"id" validate:"omitempty,min=1"`
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
navigateTo(`/manage/${guildId}/integrations/configure/${res.data.id}?created=true`);
|
navigateTo(`/manage/${guildId}/integrations/view/${res.data.id}?created=true`);
|
||||||
}
|
}
|
||||||
|
|
||||||
withLoadingScreen(async () => {
|
withLoadingScreen(async () => {
|
||||||
|
@ -63,6 +63,7 @@
|
|||||||
export let currentRoute;
|
export let currentRoute;
|
||||||
let guildId = currentRoute.namedParams.id;
|
let guildId = currentRoute.namedParams.id;
|
||||||
let integrationId = currentRoute.namedParams.integration;
|
let integrationId = currentRoute.namedParams.integration;
|
||||||
|
let freshlyCreated = currentRoute.queryParams.created === "true";
|
||||||
|
|
||||||
let integration = {};
|
let integration = {};
|
||||||
let isActive = false;
|
let isActive = false;
|
||||||
@ -112,6 +113,10 @@
|
|||||||
loadIntegration(),
|
loadIntegration(),
|
||||||
loadIsActive()
|
loadIsActive()
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
if (freshlyCreated) {
|
||||||
|
notifySuccess("Your integration has been created successfully!");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user