Skip to content

Alternative way to implement auth #280

@tanguilp

Description

@tanguilp

Hello!

First, thanks for your work on this great library 🥇

I've implemented auth in another way which, I think, is simpler that what is proposed with unplug:

scope "/metrics" do
  pipe_through :admin_auth

  get "/", PromEx.Plug, prom_ex_module: Clive.PromEx
end

Is there any problem with this approach? Otherwise I think this is what should be documented. I'd be happy to update the doc.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions