Skip to content

Commit

Permalink
Merge pull request #45 from XboxLeaders/develop
Browse files Browse the repository at this point in the history
Version 1.0 Removal and other fixes
  • Loading branch information
Jason Clemons committed Dec 9, 2013
2 parents d29e5a0 + fddf302 commit 01dbc85
Show file tree
Hide file tree
Showing 21 changed files with 119 additions and 621 deletions.
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

26 changes: 25 additions & 1 deletion api/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
Header unset Pragma
FileETag None
Header unset ETag

ExpiresActive On
ExpiresDefault A0

<FilesMatch "\.(php|cgi|pl|htm)$">
ExpiresDefault A0
Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*?)$ https://www.xboxleaders.com/api/1.0/$1 [L,QSA,NE]

RedirectMatch 301 ^/api/(1\.0|2\.0)/.* https://www.xboxleaders.com/api/

RewriteRule ^achievements\.(json|xml)$ achievements.php?format=$1 [L,QSA]
RewriteRule ^games\.(json|xml)$ games.php?format=$1 [L,QSA]
RewriteRule ^profile\.(json|xml)$ profile.php?format=$1 [L,QSA]
RewriteRule ^friends\.(json|xml)$ friends.php?format=$1 [L,QSA]
RewriteRule ^search\.(json|xml)$ search.php?format=$1 [L,QSA]

RewriteCond %{REQUEST_METHOD} !^(GET|HEAD|OPTIONS|POST|PUT)
RewriteRule .* - [F]
23 changes: 0 additions & 23 deletions api/1.0/.htaccess

This file was deleted.

41 changes: 0 additions & 41 deletions api/1.0/achievements.php

This file was deleted.

38 changes: 0 additions & 38 deletions api/1.0/friends.php

This file was deleted.

38 changes: 0 additions & 38 deletions api/1.0/games.php

This file was deleted.

Loading

0 comments on commit 01dbc85

Please sign in to comment.