|
|
@ -23,6 +23,7 @@ defmodule BlockScoutWeb.ApiRouter do |
|
|
|
# plug(Guardian.Plug.VerifyHeader, module: BlockScoutWeb.Guardian, error_handler: BlockScoutWeb.GuardianErrorHandler) |
|
|
|
# plug(Guardian.Plug.VerifyHeader, module: BlockScoutWeb.Guardian, error_handler: BlockScoutWeb.GuardianErrorHandler) |
|
|
|
# plug(CheckAuth) |
|
|
|
# plug(CheckAuth) |
|
|
|
plug(:fetch_session) |
|
|
|
plug(:fetch_session) |
|
|
|
|
|
|
|
plug(:protect_from_forgery) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
pipeline :tags_api do |
|
|
|
pipeline :tags_api do |
|
|
@ -33,6 +34,7 @@ defmodule BlockScoutWeb.ApiRouter do |
|
|
|
# halt: false |
|
|
|
# halt: false |
|
|
|
# ) |
|
|
|
# ) |
|
|
|
plug(:fetch_session) |
|
|
|
plug(:fetch_session) |
|
|
|
|
|
|
|
plug(:protect_from_forgery) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
alias BlockScoutWeb.Account.Api.V1.{TagsController, UserController} |
|
|
|
alias BlockScoutWeb.Account.Api.V1.{TagsController, UserController} |
|
|
|