Start to work on networking

This commit is contained in:
2024-08-17 13:49:55 +02:00
parent 6b9d5e9d85
commit 0d90973842
4 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,11 @@
#include "unsecure_api.h"
#include "constants.h"
#include "esp_http_client.h"
#include <string.h>
char *unsecure_api_get_secure_origin()
{
const char *url = BACKEND_UNSECURE_URL "/secure_origin";
return strdup(url);
}