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://"`
|
||||
|
||||
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 {
|
||||
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://"`
|
||||
|
||||
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 {
|
||||
Id int `json:"id" validate:"omitempty,min=1"`
|
||||
|
@ -18,7 +18,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
navigateTo(`/manage/${guildId}/integrations/configure/${res.data.id}?created=true`);
|
||||
navigateTo(`/manage/${guildId}/integrations/view/${res.data.id}?created=true`);
|
||||
}
|
||||
|
||||
withLoadingScreen(async () => {
|
||||
|
@ -63,6 +63,7 @@
|
||||
export let currentRoute;
|
||||
let guildId = currentRoute.namedParams.id;
|
||||
let integrationId = currentRoute.namedParams.integration;
|
||||
let freshlyCreated = currentRoute.queryParams.created === "true";
|
||||
|
||||
let integration = {};
|
||||
let isActive = false;
|
||||
@ -112,6 +113,10 @@
|
||||
loadIntegration(),
|
||||
loadIsActive()
|
||||
]);
|
||||
|
||||
if (freshlyCreated) {
|
||||
notifySuccess("Your integration has been created successfully!");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user