Added the first API handler for external payments (to use with the Omnipay plugin)
This commit is contained in:
@ -16,7 +16,8 @@ namespace InfD4p\Application;
|
||||
|
||||
use \Slim\App;
|
||||
|
||||
class Main {
|
||||
class Main
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor function
|
||||
@ -29,7 +30,12 @@ class Main {
|
||||
* Hier wordt onze applicatie gestart. De functie hieronder wordt aangeroepen bij het starten van de app. Hier kun je dus routes toevoegen.
|
||||
*
|
||||
*/
|
||||
public function __construct(App $app) {
|
||||
public function __construct(App $app)
|
||||
{
|
||||
// Load the API handler for the Omnipay plugin
|
||||
new API\Handler($app);
|
||||
|
||||
// Add the default view routes
|
||||
$app->get('/[{name}]', function ($request, $response, $args) {
|
||||
// Render index view
|
||||
return $this->renderer->render($response, 'index.phtml', $args);
|
||||
|
Reference in New Issue
Block a user