Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit b4d420b3 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Fix Cors on /api/current

parent 72191581
No related branches found
No related tags found
No related merge requests found
......@@ -17,12 +17,14 @@ defmodule DiskuyWeb.Router do
scope "/api", DiskuyWeb do
pipe_through [:api, :auth]
get "/current", UserController, :currentuser
options "/current", UserController, :options
resources "/threads", ThreadController, except: [:new, :edit, :show, :index]
resources "/topics", TopicController, except: [:new, :edit, :show, :index]
resources "/post", PostController, except: [:new, :edit, :show, :index]
put "/users/update", UserController, :update
get "/users/update", UserController, :options
options "/users/update", UserController, :options
post "/threads/like/:id", ThreadController, :add_like
options "/threads/like/:id", ThreadController, :options
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment