-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[application] | ||
app_title="Hello World" | ||
app_description="Hello World is just a sample integration description." | ||
[config] | ||
data="any_data_here" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
class HelloWorld | ||
{ | ||
private $client; | ||
public function __construct() | ||
{ | ||
global $f3; | ||
} | ||
|
||
function Test(){ | ||
|
||
header('Content-Type: application/json'); | ||
|
||
try { | ||
echo json_encode(['success' => 'Is Working!']); | ||
|
||
} catch (Error $e) { | ||
http_response_code(500); | ||
echo json_encode(['error' => $e->getMessage()]); | ||
} | ||
|
||
exit; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
require_once(INTEGRATIONS.'HelloWorld/HelloWorld.php'); | ||
|
||
global $f3; | ||
|
||
$f3->route('GET|POST /api/hello-world', 'HelloWorld->Test'); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" data-theme="dark"> | ||
<head> | ||
<base href="/"> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> | ||
<meta name="description" content="{{isset(@PAGE.description)[email protected]:''}}"> | ||
<meta name="author" content="PIGMIL.COM"> | ||
<meta name="keyword" content="{{isset(@PAGE.keywords)[email protected]:''}}"> | ||
<meta name="robots" content="index,follow"> | ||
<meta name="googlebot" content="index"> | ||
<link rel="icon" type="image/png" href="{{@PUBLIC}}/manifest/favicon-16x16.png" sizes="16x16"> | ||
<link rel="icon" type="image/png" href="{{@PUBLIC}}/manifest/favicon-32x32.png" sizes="32x32"> | ||
<link rel="icon" type="image/png" href="{{@PUBLIC}}/manifest/favicon-96x96.png" sizes="96x96"> | ||
<link rel="apple-touch-icon" sizes="57x57" href="{{@PUBLIC}}/manifest/apple-touch-icon-57x57.png"> | ||
<link rel="apple-touch-icon" sizes="60x60" href="{{@PUBLIC}}/manifest/apple-touch-icon-60x60.png"> | ||
<link rel="apple-touch-icon" sizes="72x72" href="{{@PUBLIC}}/manifest/apple-touch-icon-72x72.png"> | ||
<link rel="apple-touch-icon" sizes="76x76" href="{{@PUBLIC}}/manifest/apple-touch-icon-76x76.png"> | ||
<link rel="apple-touch-icon" sizes="114x114" href="{{@PUBLIC}}/manifest/apple-touch-icon-114x114.png"> | ||
<link rel="apple-touch-icon" sizes="120x120" href="{{@PUBLIC}}/manifest/apple-touch-icon-120x120.png"> | ||
<link rel="apple-touch-icon" sizes="144x144" href="{{@PUBLIC}}/manifest/apple-touch-icon-144x144.png"> | ||
<link rel="apple-touch-icon" sizes="152x152" href="{{@PUBLIC}}/manifest/apple-touch-icon-152x152.png"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="{{@PUBLIC}}/manifest/apple-touch-icon-180x180.png"> | ||
<link rel="icon" type="image/png" href="{{@PUBLIC}}/manifest/android-chrome-192x192.png" sizes="192x192"> | ||
<link rel="manifest" href="{{@PUBLIC}}/manifest/manifest.json"> | ||
<meta name="msapplication-TileImage" content="{{@PUBLIC}}/manifest/mstile-144x144.png"> | ||
<meta name="msapplication-TileColor" content="{{@SITE.color_primary}}"> | ||
<meta name="theme-color" content="currentColor"> | ||
|
||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Anton&display=swap" rel="stylesheet"> | ||
<script type="module" crossorigin src="ui/assets/index.js?v={{@DEBUG>0?time():@VERSION}}"></script> | ||
<link rel="stylesheet" crossorigin href="ui/assets/index.css?v={{@DEBUG>0?time():@VERSION}}"> | ||
|
||
<script type="application/ld+json"> | ||
{ | ||
"@context": "https://schema.org/", | ||
"@type": "WebSite", | ||
"name": "", | ||
"url": "{{@HOST . '://' . @SCHEME . @BASE }}", | ||
"potentialAction": { | ||
"@type": "SearchAction", | ||
"target": "{{@HOST . '://' . @SCHEME . @BASE }}/search?q={search_term_string}", | ||
"query-input": "required name=search_term_string" | ||
} | ||
} | ||
</script> | ||
|
||
</head> | ||
<body> | ||
<div id="root"></div> | ||
</body> | ||
</html> |