1
0
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:
2018-01-06 12:25:50 -06:00
parent 006a7e1fc2
commit 959c44b8f8
7 changed files with 68 additions and 12 deletions

View File

@@ -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

View File

@@ -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)