Commit 503714fa authored by FRANTZEN Rejane's avatar FRANTZEN Rejane
Browse files

maj q8

parent 464c74b0
......@@ -62,7 +62,7 @@ $app->get('/api/platform/:id', function ($idPlatform) use ($app) {
$app->post('/api/games/:id/comments', function ($idGame) use ($app) {
$c = new controleur\CtrlComment();
$c->posterCommentaire($idGame, $_POST);
$app->response->headers->set('Content-Type', 'application/json');
// $app->response->headers->set('Content-Type', 'application/json');
})->name('posterCommentaire');
$app->run();
\ No newline at end of file
......@@ -16,7 +16,7 @@ class VueComment {
public function creerCommentaire() {
echo <<< end
<form method=POST>
<div class="form-bigtitle">Ajout de commentaire !</div>
<div class="form-bigtitle"><br>Ajout de commentaire !</div>
<div class="form-email">
<textarea name=email placeholder="Email"></textarea>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment