리펙토링 #6 참고

This commit is contained in:
Lectom C Han
2026-02-05 12:38:34 +09:00
parent 46b30af839
commit 7034a3643a
17 changed files with 76 additions and 369 deletions

View File

@@ -5,7 +5,8 @@
* - secret_key: MY_SECRET_KEY
*/
session_start();
require_once __DIR__ . '/env.php';
kngil_start_session();
require_once $_SERVER['DOCUMENT_ROOT'].'/kngil/bbs/db_conn.php';
header('Content-Type: application/json; charset=utf-8');
@@ -209,4 +210,4 @@ try {
'error' => true,
'message' => $e->getMessage()
], JSON_UNESCAPED_UNICODE);
}
}