forked from grumpydevelop/federator
		
	renamed file to avoid name conflicts
This commit is contained in:
		
							parent
							
								
									47f82afcb5
								
							
						
					
					
						commit
						073fba5312
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		
		Reference in a new issue