浏览代码

Changement client/end en POST

Arthur Brandao 6 年之前
父节点
当前提交
2142b817c9
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      Serveur/handler.c

+ 1 - 3
Serveur/handler.c

@@ -81,9 +81,9 @@ int search_game(char* name) {
 /* --- Fonctions publiques --- */
 void ini_handler() {
     //Get
-    add_handler("GET", "client/end", handler_client_end);
     add_handler("GET", "game/list", handler_game_list);
     //Post
+    add_handler("POST", "client/end", handler_client_end);
     add_handler("POST", "game/create", handler_game_create);
     add_handler("POST", "game/join", handler_game_join);
     add_handler("POST", "game/quit", handler_game_quit);
@@ -271,7 +271,6 @@ int handler_game_join(int cliId, JsonParser* json) {
 }
 
 int handler_game_quit(int cliId, JsonParser* json) {
-    printf("Quit\n");
     boolean find = false;
     JsonEncoder notif;
     //Cherche le client dans les parties
@@ -304,7 +303,6 @@ int handler_game_quit(int cliId, JsonParser* json) {
 }
 
 int handler_player_move(int cliId, JsonParser* json) {
-    printf("Player Move\n");
     char* move;
     int index, x = 0, y = 0;
     Player* p = NULL;