From 6bc9b53d245c8a3b6e7444eda3fc8045a859e416 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 17 Dec 2023 11:14:02 +0200 Subject: [PATCH] update project name --- README.md | 20 ++++++++++---------- composer.json | 4 ++-- src/public/{ => net}/dig.php | 0 src/public/{ => net}/socket.php | 0 4 files changed, 12 insertions(+), 12 deletions(-) rename src/public/{ => net}/dig.php (100%) rename src/public/{ => net}/socket.php (100%) diff --git a/README.md b/README.md index b70d8ac..fb94c97 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -# net-api +# web-api Network API with native Yggdrasil/IPv6 support ## Install ``` -git clone https://github.com/YGGverse/net-api.git -cd net-api +git clone https://github.com/YGGverse/web-api.git +cd web-api composer install ``` @@ -33,7 +33,7 @@ Check socket (also useful for open ports detection) ##### Request ``` -GET socket.php?port=80&host=yo.index +GET /net/socket.php?port=80&host=yo.index ``` ##### Response @@ -68,13 +68,13 @@ Show host records ###### Single record ``` -GET dig.php?name=yo.index&record=A +GET /net/dig.php?name=yo.index&record=A ``` ###### Multiple records ``` -GET dig.php?name=yo.index&records[]=A&records[]=AAAA +GET /net/dig.php?name=yo.index&records[]=A&records[]=AAAA ``` ##### Response @@ -91,16 +91,16 @@ JSON ### Yggdrasil - * `http://[201:23b4:991a:634d:8359:4521:5576:15b7]/api/net/` + * `http://[201:23b4:991a:634d:8359:4521:5576:15b7]/api/` ### Alfis - * `http://api.ygg/net/` + * `http://api.ygg` ### Hybrid - * `http://api.ygg.at/net/` + * `http://api.ygg.at` ### Clearnet - * `https://yggapi.duckdns.org/net/` \ No newline at end of file + * `https://yggapi.duckdns.org` \ No newline at end of file diff --git a/composer.json b/composer.json index b3cc9ec..ef4f8e1 100644 --- a/composer.json +++ b/composer.json @@ -1,10 +1,10 @@ { - "name": "yggverse/net-api", + "name": "yggverse/web-api", "type": "project", "license": "MIT", "autoload": { "psr-4": { - "Yggverse\\NetApi\\": "src/" + "Yggverse\\WebApi\\": "src/" } }, "require": { diff --git a/src/public/dig.php b/src/public/net/dig.php similarity index 100% rename from src/public/dig.php rename to src/public/net/dig.php diff --git a/src/public/socket.php b/src/public/net/socket.php similarity index 100% rename from src/public/socket.php rename to src/public/net/socket.php