diff --git a/pkg/handlers/static.go b/pkg/handlers/static.go index e287b3f..564fa4f 100644 --- a/pkg/handlers/static.go +++ b/pkg/handlers/static.go @@ -31,6 +31,20 @@ func (h *Handlers) ServeIndex(w http.ResponseWriter, r *http.Request) { writeBytes(w, content) } +// ServeTermsOfService serves the terms of service page +func (h *Handlers) ServeTermsOfService(w http.ResponseWriter, r *http.Request) { + content, err := staticFiles.ReadFile("static/terms-of-service.html") + if err != nil { + logging.Error("Failed to read terms-of-service.html", "error", err) + http.Error(w, "Internal Server Error", http.StatusInternalServerError) + return + } + + w.Header().Set("Content-Type", "text/html; charset=utf-8") + w.WriteHeader(http.StatusOK) + writeBytes(w, content) +} + // ServePrivacyPolicy serves the privacy policy page func (h *Handlers) ServePrivacyPolicy(w http.ResponseWriter, r *http.Request) { content, err := staticFiles.ReadFile("static/privacy-policy.html") diff --git a/pkg/handlers/static/index.html b/pkg/handlers/static/index.html index 12fe3bc..65474d9 100644 --- a/pkg/handlers/static/index.html +++ b/pkg/handlers/static/index.html @@ -564,8 +564,8 @@
+Terms of Service
+By using WhatsHooked, you agree to these terms. You are responsible for ensuring your usage complies with Meta's terms of service and all applicable laws.
+WhatsHooked is provided as-is. No guarantees are made regarding uptime, message delivery, or fitness for any particular purpose.
+By deploying or using WhatsHooked, you accept and agree to be bound by these Terms of Service. If you do not agree to these terms, you must not use the software.
+WhatsHooked is an open-source webhook bridge that forwards WhatsApp messages to user-configured HTTP endpoints. It does not store customer data and does not act as a messaging provider. It is a tool that facilitates the relay of messages between WhatsApp and your own infrastructure.
+WhatsHooked integrates with the Meta WhatsApp Business API exclusively for sending and receiving WhatsApp Business messages. By using WhatsHooked, you agree to comply with:
+You are solely responsible for obtaining and maintaining any required Meta business account, app approvals, and API access tokens.
+As the operator of a WhatsHooked instance, you are responsible for:
+You must not use WhatsHooked to:
+WhatsHooked is provided "as is" without any warranties of any kind, express or implied. This includes but is not limited to implied warranties of merchantability, fitness for a particular purpose, and non-infringement. There is no guarantee of uninterrupted service, message delivery, or error-free operation.
+Under no circumstances shall the WhatsHooked contributors be liable for any direct, indirect, incidental, special, or consequential damages arising out of or in connection with your use of WhatsHooked, including but not limited to loss of data, failed message delivery, or business interruption.
+You may stop using WhatsHooked at any time by shutting down your instance. These terms remain in effect for any use that has already occurred.
+These terms may be updated at any time. Changes will be reflected on this page. Continued use of WhatsHooked after an update constitutes acceptance of the revised terms.
+WhatsHooked is an independent project and is not affiliated with, endorsed by, or connected to Meta Platforms, Inc. "WhatsApp" and the WhatsApp logo are trademarks of Meta Platforms, Inc.
+diff --git a/pkg/handlers/static/logo1024.png b/pkg/handlers/static/logo1024.png new file mode 100644 index 0000000..aa23a2e Binary files /dev/null and b/pkg/handlers/static/logo1024.png differ diff --git a/pkg/handlers/static/privacy-policy.html b/pkg/handlers/static/privacy-policy.html index e3db877..cfa72a0 100644 --- a/pkg/handlers/static/privacy-policy.html +++ b/pkg/handlers/static/privacy-policy.html @@ -176,8 +176,8 @@
diff --git a/pkg/handlers/static/terms-of-service.html b/pkg/handlers/static/terms-of-service.html new file mode 100644 index 0000000..cdb27a5 --- /dev/null +++ b/pkg/handlers/static/terms-of-service.html @@ -0,0 +1,239 @@ + + +
+ + +
+ + +
+