Skip to content

Commit

Permalink
Accept API default route
Browse files Browse the repository at this point in the history
  • Loading branch information
ocdtrekkie committed Oct 27, 2022
1 parent 3db35f8 commit 1f46b16
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .sandstorm/sandstorm-files.list
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ lib64
opt/app/.sandstorm/launcher.sh
opt/app/.sandstorm/service-config/mime.types
opt/app/.sandstorm/service-config/nginx.conf
opt/app/api/index.php
opt/app/api/v1.php
opt/app/index.php
proc/cpuinfo
Expand Down
4 changes: 2 additions & 2 deletions .sandstorm/sandstorm-pkgdef.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const pkgdef :Spk.PackageDefinition = (

appTitle = (defaultText = "Sandstorm Error Collector"),

appVersion = 1, # Increment this for every release.
appVersion = 2, # Increment this for every release.

appMarketingVersion = (defaultText = "1.0.0"),
appMarketingVersion = (defaultText = "1.0.1"),
# Human-readable representation of appVersion. Should match the way you
# identify versions of your app in documentation and marketing.

Expand Down
1 change: 1 addition & 0 deletions api/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php require_once("v1.php"); ?>
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<script>
function requestIframeURL() {
var templateToken = \"\$API_TOKEN\";
var templateHost = \"https://\$API_HOST/v1.php\"
var templateHost = \"https://\$API_HOST\"
window.parent.postMessage({renderTemplate: {
rpcId: \"0\",
template: templateToken,
Expand Down

0 comments on commit 1f46b16

Please sign in to comment.