mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Add static file handler
This commit is contained in:
parent
12c6af7d79
commit
21a3c6ad3c
4 changed files with 74 additions and 41 deletions
|
@ -17,8 +17,8 @@ at_exit do
|
|||
config = Kemal.config
|
||||
logger = Kemal::Logger.new
|
||||
config.add_handler logger
|
||||
config.add_handler Kemal::StaticHandler.new("./public")
|
||||
config.add_handler Kemal::Handler::INSTANCE
|
||||
config.add_handler HTTP::StaticFileHandler.new("./public")
|
||||
|
||||
server = HTTP::Server.new(config.port, config.handlers)
|
||||
server.ssl = config.ssl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue