Skip to content

Commit

Permalink
api changed to api/v1
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovikov committed Aug 19, 2015
1 parent 9474811 commit 3c23b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

define('WEBROOT', preg_replace('/api(.*)$/', '', $_SERVER["REQUEST_URI"]));

Server::create(WEBROOT.'api', 'RestApi\Auth') //base entry points `/admin`
Server::create(WEBROOT.'api/v1', 'RestApi\Auth') //base entry points `/admin`

->setDebugMode(false) //prints the debug trace, line number and file if a exception has been thrown.
->addGetRoute('session', 'getSession') // => /api/session
Expand Down

0 comments on commit 3c23b79

Please sign in to comment.