Fakultas Ilmu Komputer UI

Commit bdf7c3ec authored by Jonathan Nicholas's avatar Jonathan Nicholas
Browse files

rename dislike to unlike

parent 8026780b
......@@ -27,3 +27,4 @@ diskuy-*.tar
# this depending on your deployment strategy.
/priv/static/
.DS_store
\ No newline at end of file
......@@ -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
......
......@@ -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
......
Supports Markdown
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