23 lines
655 B
PHP
23 lines
655 B
PHP
<?php
|
|
|
|
$headers_array = [
|
|
"/authentication" => [
|
|
"register" => [
|
|
"Content-Type" => "application/json",
|
|
"Authorization" => hash('md5', 'service_authentication'),
|
|
"Auth-Request" => "register"
|
|
],
|
|
"login" => [
|
|
"Content-Type" => "application/json",
|
|
"Authorization" => hash('md5', 'service_authentication'),
|
|
"Auth-Request" => "login"
|
|
],
|
|
|
|
"default" => [
|
|
"Content-Type" => "application/json",
|
|
"Authorization" => hash('md5', 'service_authentication')
|
|
],
|
|
]
|
|
];
|
|
|
|
$_SESSION['headers_configuration'] = $headers_array; |