diff --git a/.gitignore b/.gitignore index f62cb5125fe65c55e7123f52285e8409f235928b..f5446b342143fb4b32b0a12a1ac4e602104e6ad0 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 b56ce179f9c58dacdfea5c04b8b79a74004322ff..083b22dacbd0d95ff11b85351b209d63798fe59d 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 269ac2c1b3a3f29f62b45e892d50a1a6358ab6b9..7205a25b9233850fae0d9aae9ff8c91cf10c2985 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