Fakultas Ilmu Komputer UI

Commit b4d420b3 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Fix Cors on /api/current

parent 72191581
......@@ -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
......
Markdown is supported
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