mirror of
https://github.com/claradex/nativegallery.git
synced 2025-02-14 02:03:12 +03:00
24 lines
451 B
PHP
24 lines
451 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Controllers\Api\Admin\GeoDB;
|
||
|
|
||
|
|
||
|
|
||
|
use App\Services\{Auth, Router, GenerateRandomStr, DB, Json, EXIF};
|
||
|
use App\Models\{User, Vote, Photo};
|
||
|
|
||
|
|
||
|
class Create
|
||
|
{
|
||
|
public function __construct()
|
||
|
{
|
||
|
DB::query('INSERT INTO geodb VALUES (\'0\', :body)', array(':body' => $_POST['body']));
|
||
|
echo json_encode(
|
||
|
array(
|
||
|
'errorcode' => 0,
|
||
|
'error' => 0
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
}
|