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
Cellophile
PersonaLink
Commits
8797ec52
Commit
8797ec52
authored
May 04, 2021
by
Cellophile
🎨
Browse files
info commentaire ligne
parent
c0af995b
Changes
1
Hide whitespace changes
Inline
Side-by-side
api/api.php
View file @
8797ec52
...
...
@@ -40,6 +40,7 @@ if($_SERVER['REQUEST_METHOD'] == 'GET'){
//echo json_encode($urlfinale);
http_response_code
(
200
);
echo
json_encode
([
"message"
=>
"l'url a été raccourcie avec succès. Voici la nouvelle url : "
.
$urlfinale
.
"."
]);
// Privatebin ne lit pas le json, il faut donc lui envoyer les infos en texte, d'où la ligne ci-dessous.
echo
"l'url a été raccourcie avec succès. Voici la nouvelle url : "
.
$urlfinale
;
die
();
...
...
@@ -60,4 +61,4 @@ if($_SERVER['REQUEST_METHOD'] == 'GET'){
die
();
}
?>
\ No newline at end of file
?>
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