renamed file to avoid name conflicts

This commit is contained in:
Sascha Nitsch 2024-07-22 15:40:16 +02:00
parent 47f82afcb5
commit 073fba5312
2 changed files with 3 additions and 3 deletions

View file

@ -38,13 +38,13 @@ To configure an apache server, add the following rewrite rules:
<Directory /where/ever/you/put/it>
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]
</Directory>
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.