mirror of
https://codeberg.org/vlw/victorwesterlund.com.git
synced 2025-09-14 03:23:41 +02:00
Added base API structure
This commit is contained in:
parent
4d74cc4607
commit
c0df341818
5 changed files with 5 additions and 6 deletions
3
api/endpoint/ping.php
Normal file
3
api/endpoint/ping.php
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
echo "Pong";
|
|
@ -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
1
api/sources/sources.md
Normal file
|
@ -0,0 +1 @@
|
|||
Source repositories
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue