Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lockhome
LockHome
Commits
111e98de
Commit
111e98de
authored
Dec 17, 2019
by
Kylian ou Nathan
Browse files
Up
parent
27422ed0
Changes
2
Hide whitespace changes
Inline
Side-by-side
application/config/routes.php
View file @
111e98de
...
@@ -76,6 +76,8 @@ $route['profil'] = 'Profil/list';
...
@@ -76,6 +76,8 @@ $route['profil'] = 'Profil/list';
$route
[
'resume/show'
]
=
'Resume/show'
;
$route
[
'resume/show'
]
=
'Resume/show'
;
$route
[
'api/(:any)/(:any)'
]
=
'API/init'
;
$route
[
'api/(:any)/(:any)'
]
=
'API/init'
;
$route
[
'api/(:any)'
]
=
'API/init'
;
$route
[
'api'
]
=
'API/init'
;
$route
[
'404_override'
]
=
''
;
$route
[
'404_override'
]
=
''
;
...
...
application/controllers/API.php
View file @
111e98de
...
@@ -9,9 +9,7 @@ class API extends CI_Controller{
...
@@ -9,9 +9,7 @@ class API extends CI_Controller{
}
}
public
function
init
()
{
public
function
init
()
{
echo
"GET :<br>"
;
echo
"POST :<br>"
;
var_dump
(
$_GET
);
echo
"<br><br>POST :<br>"
;
var_dump
(
$_POST
);
var_dump
(
$_POST
);
}
}
...
...
Write
Preview
Markdown
is supported
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