리빌더 부분 추가
This commit is contained in:
20
plugin/editor/rb.editor/php/rb.metadata_proxy.php
Normal file
20
plugin/editor/rb.editor/php/rb.metadata_proxy.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
include_once("./_common.php");
|
||||
header('Content-Type: application/json');
|
||||
|
||||
$data = json_decode(file_get_contents('php://input'), true);
|
||||
$url = $data['url'];
|
||||
|
||||
if (!$url) {
|
||||
echo json_encode(['error' => 'Invalid URL']);
|
||||
exit;
|
||||
}
|
||||
|
||||
$editor_url = G5_EDITOR_URL.'/'.$config['cf_editor'];
|
||||
|
||||
// 🛠️ 실제 메타데이터 스크래핑을 수행하는 파일 호출
|
||||
$metadata_url = $editor_url.'/php/rb.metadata.php?url=' . urlencode($url);
|
||||
|
||||
$response = file_get_contents($metadata_url);
|
||||
echo $response;
|
||||
?>
|
||||
Reference in New Issue
Block a user