Files
API-KTA/app/Database/Seeds/EndpointSeeder.php
2026-04-25 04:41:23 +07:00

43 lines
1.2 KiB
PHP

<?php
namespace App\Database\Seeds;
use CodeIgniter\Database\Seeder;
class EndpointSeeder extends Seeder
{
public function run()
{
$data = [
[
'endpoint_id' => 0,
'value' => '/auth',
'method' => 'POST',
'type' => 'backend',
'bypass' => '1',
'description' => '',
'created_by' => 'admin',
],
[
'endpoint_id' => 1,
'value' => '/endpoencode',
'method' => 'POST',
'type' => 'backend',
'bypass' => '0',
'description' => '',
'created_by' => 'admin',
],
[
'endpoint_id' => 2,
'value' => '/endpodecode',
'method' => 'POST',
'type' => 'backend',
'bypass' => '0',
'description' => '',
'created_by' => 'admin',
]
];
$this->db->table('endpoint')->insertBatch($data);
}
}