Skip to content

Commit

Permalink
define direct access
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunny77K9 committed May 20, 2024
1 parent a836d2c commit 6931066
Show file tree
Hide file tree
Showing 20 changed files with 46 additions and 2,046 deletions.
2 changes: 1 addition & 1 deletion application/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
| a PHP script and you can easily do that on your own.
|
*/
$config['base_url'] = 'https://devforum.azurewebsites.net/';
$config['base_url'] = 'http://localhost/DevForum/';

/*
|--------------------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions application/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

$db['default'] = array(
'dsn' => '',
'hostname' => getenv('DB_HOSTNAME'),
'username' => getenv('DB_USERNAME'),
'password' => getenv('DB_PASSWORD'),
'database' => getenv('DB_NAME'),
'hostname' => 'devforum.mysql.database.azure.com',
'username' => 'nandundias',
'password' => '#diaz@19927',
'database' => 'devforum',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
Expand Down
2 changes: 1 addition & 1 deletion application/config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
$route['translate_uri_dashes'] = FALSE;

$route['api/User/login'] = 'api/User/login';
$route['api/User/registration'] = 'api/User/registration';
$route['api/User/signup'] = 'api/User/signup';
1 change: 1 addition & 0 deletions application/controllers/Home.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Home extends CI_Controller {

Expand Down
1 change: 1 addition & 0 deletions application/controllers/api/Answer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

use Restserver\Libraries\REST_Controller;

Expand Down
1 change: 1 addition & 0 deletions application/controllers/api/Question.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

use Restserver\Libraries\REST_Controller;

Expand Down
1 change: 1 addition & 0 deletions application/controllers/api/User.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

use Restserver\Libraries\REST_Controller;

Expand Down
Loading

0 comments on commit 6931066

Please sign in to comment.