diff --git a/.htaccess b/.htaccess index 9261543..4b870d9 100644 --- a/.htaccess +++ b/.htaccess @@ -6,4 +6,5 @@ RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-l RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^web/(.*)$ cms.php?f=$1 [L] +RewriteRule ^api/(.*)$ api.php?request=$1 [L] diff --git a/api.php b/api.php new file mode 100644 index 0000000..7e4ded7 --- /dev/null +++ b/api.php @@ -0,0 +1,66 @@ + + Copyright (C) 2010 James Grant + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation, version 2. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ +?> +