diff --git a/public/index.php b/public/index.php index 4a8c7f1..77dad57 100644 --- a/public/index.php +++ b/public/index.php @@ -28,6 +28,10 @@ require_once('./src/shorturl.php'); } + if ($endpoint === 'exercise') { + require_once('./src/exercise.php'); + } + } echo 'Invalid API endpoint.'; diff --git a/src/exercise.php b/src/exercise.php new file mode 100644 index 0000000..1c8af81 --- /dev/null +++ b/src/exercise.php @@ -0,0 +1,10 @@ +