From 006bc8235e57f04980e2f641fb2ddd91e0d57499 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sat, 4 Mar 2023 19:58:06 +0900 Subject: Parse CLI arguments --- src/xhtml.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xhtml.cr') diff --git a/src/xhtml.cr b/src/xhtml.cr index ea4f87e..c62b23a 100644 --- a/src/xhtml.cr +++ b/src/xhtml.cr @@ -38,10 +38,10 @@ CSS = " " class Page - def initialize(static_dir : String, static_url : String, api_url : String, + def initialize(static_dir : Path, static_url : String, api_url : String, db : Database) Dir.mkdir_p static_dir - @static_file = Path[static_dir] / "index.xhtml" + @static_file = static_dir / "index.xhtml" @static_url = static_url @static_host = URI.parse(static_url).host @api_url = api_url -- cgit 1.4.1