Fakultas Ilmu Komputer UI

Commit 2086d4d2 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Fix Cors for users GET API

parent 92d02ed7
......@@ -40,7 +40,11 @@ defmodule DiskuyWeb.Router do
pipe_through :api
get "/users", UserController, :index
get "/users/:id", UserController, :show
options "/users", UserController, :options
options "/users/:id", UserController, :options
get "/users/name/:name", UserController, :show_by_username
options "/users/name/:name", UserController, :options
resources "/topics", TopicController, except: [:new, :edit, :create, :update, :delete]
options "/topics", TopicController, :options
options "/topics/:id", TopicController, :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