API Multiple URLs in PHP

Let's now create an API that will have several URLs for access. For example, let's assume the following set of addresses is available:

urlhttp://api.loc/hour.php
http://api.loc/min.php
http://api.loc/sec.php

Accessing the first address should return the current hour:

api.loc/hour.php<?php
  echo date('H');
?>

Accessing the second address returns the current minutes:

api.loc/min.php<?php
  echo date('i');
?>

Accessing the third address returns the current seconds:

api.loc/sec.php<?php
  echo date('s');
?>
Задание 1

Create an API with three URLs. Accessing the first one should return the current day, the second one - the current month, the third one - the current year.