mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
92ec8e8d70
Signed-off-by: DL6ER <dl6er@dl6er.de>
22 lines
648 B
C
22 lines
648 B
C
/* Pi-hole: A black hole for Internet advertisements
|
|
* (c) 2019 Pi-hole, LLC (https://pi-hole.net)
|
|
* Network-wide ad blocking via your own hardware.
|
|
*
|
|
* FTL Engine
|
|
* API Implementation /api/settings
|
|
*
|
|
* This file is copyright under the latest version of the EUPL.
|
|
* Please see LICENSE file for your rights under this license. */
|
|
|
|
#include "../FTL.h"
|
|
#include "../webserver/http-common.h"
|
|
#include "../webserver/json_macros.h"
|
|
#include "routes.h"
|
|
|
|
int api_settings_web(struct mg_connection *conn)
|
|
{
|
|
cJSON *json = JSON_NEW_OBJ();
|
|
JSON_OBJ_REF_STR(json, "layout", "boxed");
|
|
JSON_OBJ_REF_STR(json, "language", "en");
|
|
JSON_SEND_OBJECT(json);
|
|
} |