init
This commit is contained in:
42
app/Database/Seeds/EndpointSeeder.php
Normal file
42
app/Database/Seeds/EndpointSeeder.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user