43 lines
1.2 KiB
PHP
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);
|
|
}
|
|
}
|