Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SAMBUMBA
pasteque-server
Commits
3ef5d055
Commit
3ef5d055
authored
Oct 03, 2017
by
philippepary
Browse files
Update default route informations
parent
3dd66042
Changes
1
Show whitespace changes
Inline
Side-by-side
src/http/public/index.php
View file @
3ef5d055
...
@@ -59,6 +59,7 @@ $app->add($loginMiddleware);
...
@@ -59,6 +59,7 @@ $app->add($loginMiddleware);
* @rest\endpoint /
* @rest\endpoint /
* @rest\method GET No request
* @rest\method GET No request
* @rest\response 400 String Wrong API
* @rest\response 400 String Wrong API
* @rest\tags generic
*/
*/
$app
->
get
(
'/'
,
function
(
Request
$request
,
Response
$response
)
{
$app
->
get
(
'/'
,
function
(
Request
$request
,
Response
$response
)
{
return
$response
->
withStatus
(
400
,
'Wrong API'
);
return
$response
->
withStatus
(
400
,
'Wrong API'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment