feat: ntfy url from file

This commit is contained in:
2025-04-15 11:19:54 +02:00
parent b8e2d5e76a
commit bbbf23390b

View File

@@ -69,7 +69,7 @@ pub fn send_doorbell_notification() !void {
var client = &httpClient.Client{ .allocator = allocator };
const request = &httpClient.HttpRequest{ .method = .POST, .url = try std.Uri.parse("http://ntfy.sh/todo-channel-name"), .body = "Csengo", .headers = &[_]httpClient.HttpHeader{
const request = &httpClient.HttpRequest{ .method = .POST, .url = try std.Uri.parse(@embedFile("ntfy_url.txt")), .body = "Csengo", .headers = &[_]httpClient.HttpHeader{
httpClient.HttpHeader{ .name = "Title", .value = "Csengo" },
} };
const response = try client.sendRequest(request);