mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-12 01:52:49 +00:00
end point tests figured out
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
defmodule MyApp.Guardian.Auth.Pipeline.User do
|
||||
use Guardian.Plug.Pipeline, otp_app: :MyApp,
|
||||
use Guardian.Plug.Pipeline, otp_app: :myapp,
|
||||
module: MyApp.Guardian,
|
||||
error_handler: MyApp.Auth.ErrorHandler
|
||||
|
||||
@@ -14,7 +14,7 @@ defmodule MyApp.Guardian.Auth.Pipeline.User do
|
||||
end
|
||||
|
||||
defmodule MyApp.Guardian.Auth.Pipeline.Mod do
|
||||
use Guardian.Plug.Pipeline, otp_app: :MyApp,
|
||||
use Guardian.Plug.Pipeline, otp_app: :myapp,
|
||||
module: MyApp.Guardian,
|
||||
error_handler: MyApp.Auth.ErrorHandler
|
||||
|
||||
@@ -28,7 +28,7 @@ defmodule MyApp.Guardian.Auth.Pipeline.Mod do
|
||||
end
|
||||
|
||||
defmodule MyApp.Guardian.Auth.Pipeline.Admin do
|
||||
use Guardian.Plug.Pipeline, otp_app: :MyApp,
|
||||
use Guardian.Plug.Pipeline, otp_app: :myapp,
|
||||
module: MyApp.Guardian,
|
||||
error_handler: MyApp.Auth.ErrorHandler
|
||||
|
||||
|
||||
@@ -5,9 +5,7 @@ defmodule MyAppWeb.CategoryController do
|
||||
|
||||
@spec get_collection(map, map) :: any
|
||||
def get_collection(conn, _params) do
|
||||
|
||||
output = Data.Category.get_categories()
|
||||
|
||||
conn
|
||||
|> put_status(200)
|
||||
|> Response.json(output)
|
||||
|
||||
Reference in New Issue
Block a user