Fakultas Ilmu Komputer UI

Commit 821f7ba6 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Fix Cors for update user route

parent 6f93adf5
...@@ -20,7 +20,9 @@ defmodule DiskuyWeb.Router do ...@@ -20,7 +20,9 @@ defmodule DiskuyWeb.Router do
resources "/threads", ThreadController, except: [:new, :edit, :show, :index] resources "/threads", ThreadController, except: [:new, :edit, :show, :index]
resources "/topics", TopicController, except: [:new, :edit, :show, :index] resources "/topics", TopicController, except: [:new, :edit, :show, :index]
resources "/post", PostController, except: [:new, :edit, :show, :index] resources "/post", PostController, except: [:new, :edit, :show, :index]
put "/users/update", UserController, :update put "/users/update", UserController, :update
get "/users/update", UserController, :options
post "/threads/like/:id", ThreadController, :add_like post "/threads/like/:id", ThreadController, :add_like
options "/threads/like/:id", ThreadController, :options options "/threads/like/:id", ThreadController, :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