mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Add macro specs
This commit is contained in:
parent
806b129b1c
commit
c21567fe17
5 changed files with 20 additions and 6 deletions
|
@ -23,7 +23,7 @@ end
|
|||
|
||||
# Uses Kemal::Middleware::HTTPBasicAuth to easily add HTTP Basic Auth support.
|
||||
macro basic_auth(username, password)
|
||||
auth_handler = Kemal::Middleware::HTTPBasicAuth.new(username, password)
|
||||
auth_handler = Kemal::Middleware::HTTPBasicAuth.new({{username}}, {{password}})
|
||||
Kemal.config.add_handler auth_handler
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue