From 073fba5312a2b95fa9760921ad0bbb16ddc94359 Mon Sep 17 00:00:00 2001 From: Sascha Nitsch Date: Mon, 22 Jul 2024 15:40:16 +0200 Subject: [PATCH] renamed file to avoid name conflicts --- README.md | 6 +++--- htdocs/{api.php => federator.php} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename htdocs/{api.php => federator.php} (100%) diff --git a/README.md b/README.md index 58e5bd6..2661184 100644 --- a/README.md +++ b/README.md @@ -38,13 +38,13 @@ To configure an apache server, add the following rewrite rules: RewriteEngine on RewriteBase / - RewriteRule ^api/(.+)$ api.php?_call=$1 [L] - RewriteRule ^(\.well-known/.*)$ /api.php?_call=$1 [L,END] + RewriteRule ^api/federator/(.+)$ federator.php?_call=$1 [L] + RewriteRule ^(\.well-known/.*)$ /federator.php?_call=$1 [L,END] With the dummy plugin and everything installed correctly a -> curl -v http://localhost/api/v1/dummy/moo -H "X-Session: somethingvalid" -H "X-Profile: ihaveone" +> curl -v http://localhost/api/federator/v1/dummy/moo -H "X-Session: somethingvalid" -H "X-Profile: ihaveone" should return a piece of ascii art. diff --git a/htdocs/api.php b/htdocs/federator.php similarity index 100% rename from htdocs/api.php rename to htdocs/federator.php