mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
add application/msgpack
This commit is contained in:
@@ -22,10 +22,10 @@ const router = AutoRouter({
|
|||||||
const REST_ENDPOINT_ROOT = '/rest/';
|
const REST_ENDPOINT_ROOT = '/rest/';
|
||||||
const API_ENDPOINT_ROOT = '/api/';
|
const API_ENDPOINT_ROOT = '/api/';
|
||||||
|
|
||||||
// HTTP HEADERS
|
// HTTP HEADERS for msgpack
|
||||||
const headers = {
|
const headers = {
|
||||||
'Access-Control-Allow-Origin': '*',
|
'Access-Control-Allow-Origin': '*',
|
||||||
'Content-type': 'application/json'
|
'Content-type': 'application/msgpack'
|
||||||
};
|
};
|
||||||
|
|
||||||
// GLOBAL VARIABLES
|
// GLOBAL VARIABLES
|
||||||
|
|||||||
Reference in New Issue
Block a user