renamed file to avoid name conflicts
parent
47f82afcb5
commit
073fba5312
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue