Added base API structure

This commit is contained in:
Victor Westerlund 2021-02-05 15:11:03 +01:00
parent 4d74cc4607
commit c0df341818
5 changed files with 5 additions and 6 deletions

3
api/endpoint/ping.php Normal file
View file

@ -0,0 +1,3 @@
<?php
echo "Pong";

View file

View file

@ -1,5 +0,0 @@
<?php
http_response_code("503 Service Unavailable");
header("Content-Type: text/plain");
echo "Not available yet";

1
api/sources/sources.md Normal file
View file

@ -0,0 +1 @@
Source repositories

View file

@ -57,7 +57,7 @@ server {
ssl on;
include snippets/ssl.conf;
root /var/www/github_victorwesterlund_victorwesterlund.com/api;
root /var/www/github_victorwesterlund_victorwesterlund.com/api/endpoint;
location \* {
try_files /router.php$request_uri =404;