From bdf7c3ec56715feebf2143dfc4ab3af8252ea480 Mon Sep 17 00:00:00 2001 From: Jonathan Nicholas <jojonicho181@gmail.com> Date: Fri, 29 Oct 2021 20:57:32 +0700 Subject: [PATCH] rename dislike to unlike --- .gitignore | 1 + config/dev.exs | 6 +++--- lib/diskuy_web/router.ex | 8 ++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index f62cb51..f5446b3 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ diskuy-*.tar # this depending on your deployment strategy. /priv/static/ +.DS_store \ No newline at end of file diff --git a/config/dev.exs b/config/dev.exs index b56ce17..083b22d 100755 --- a/config/dev.exs +++ b/config/dev.exs @@ -2,9 +2,9 @@ use Mix.Config # Configure your database config :diskuy, Diskuy.Repo, - username: "rafif", - password: "rafif123", - database: "diskuy_dev_new", + username: "postgres", + password: "postgres", + database: "diskuy", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 diff --git a/lib/diskuy_web/router.ex b/lib/diskuy_web/router.ex index 269ac2c..7205a25 100644 --- a/lib/diskuy_web/router.ex +++ b/lib/diskuy_web/router.ex @@ -28,15 +28,15 @@ defmodule DiskuyWeb.Router do post "/threads/like/:id", ThreadController, :add_like options "/threads/like/:id", ThreadController, :options - post "/threads/dislike/:id", ThreadController, :delete_like - options "/threads/dislike/:id", ThreadController, :options + post "/threads/unlike/:id", ThreadController, :delete_like + options "/threads/unlike/:id", ThreadController, :options get "/threads/checklike/:id", ThreadLikeController, :check_like options "/threads/checklike/:id", ThreadLikeController, :options post "/post/like/:id", PostController, :add_like options "/post/like/:id", PostController, :options - post "/post/dislike/:id", PostController, :delete_like - options "/post/dislike/:id", PostController, :options + post "/post/unlike/:id", PostController, :delete_like + options "/post/unlike/:id", PostController, :options get "/post/checklike/:id", PostLikeController, :check_like options "/post/checklike/:id", PostLikeController, :options -- GitLab