add bookmarks api and iimports, bugfixes
This commit is contained in:
@ -14,20 +14,20 @@ namespace TheTempusProject\Controllers\Api;
|
||||
use Stripe\StripeClient;
|
||||
use Stripe\Event;
|
||||
use TheTempusProject\Models\User;
|
||||
use TheTempusProject\Controllers\StripeApiController;
|
||||
use TheTempusProject\Controllers\ApiController;
|
||||
use TheTempusProject\Houdini\Classes\Views;
|
||||
use TheTempusProject\Bedrock\Classes\Config;
|
||||
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||
use TheTempusProject\Models\MembershipCustomers;
|
||||
use TheTempusProject\Models\Memberships;
|
||||
|
||||
class Stripe extends StripeApiController {
|
||||
class Stripe extends ApiController {
|
||||
public static $stripe;
|
||||
public static $customers;
|
||||
public static $memberships;
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
parent::__construct( false );
|
||||
$api_key = Config::getValue( 'memberships/stripeSecret' );
|
||||
self::$stripe = new StripeClient($api_key);
|
||||
}
|
||||
|
@ -1,33 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* app/classes/admin_controller.php
|
||||
*
|
||||
* This is the base admin controller. Every other admin controller should
|
||||
* extend this class.
|
||||
*
|
||||
* @version 3.0
|
||||
* @author Joey Kimsey <Joey@thetempusproject.com>
|
||||
* @link https://TheTempusProject.com
|
||||
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
|
||||
*/
|
||||
namespace TheTempusProject\Controllers;
|
||||
|
||||
use TheTempusProject\Houdini\Classes\Template;
|
||||
use TheTempusProject\TheTempusProject as App;
|
||||
use TheTempusProject\Hermes\Functions\Redirect;
|
||||
use TheTempusProject\Bedrock\Functions\Session;
|
||||
use TheTempusProject\Classes\Controller;
|
||||
|
||||
class StripeApiController extends Controller {
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
// if ( ! App::verifyApiRequest() ) {
|
||||
// Session::flash( 'error', 'You do not have permission to view this page.' );
|
||||
// return Redirect::home();
|
||||
// }
|
||||
Template::noFollow();
|
||||
Template::noIndex();
|
||||
Template::addHeader( 'Content-Type: application/json; charset=utf-8' );
|
||||
Template::setTemplate( 'api' );
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user