summary refs log tree commit diff homepage
path: root/src/xhtml.cr
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2023-03-04 19:58:06 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2023-03-04 19:58:06 +0900
commit006bc8235e57f04980e2f641fb2ddd91e0d57499 (patch)
tree1e8364eec0b05b39f74de539549dc5e8323a29a7 /src/xhtml.cr
parent320feb3eae1a5eb3beea38a381ff153c5e6eb190 (diff)
downloadhybring-006bc8235e57f04980e2f641fb2ddd91e0d57499.tar.gz
Parse CLI arguments
Diffstat (limited to 'src/xhtml.cr')
-rw-r--r--src/xhtml.cr4
1 files changed, 2 insertions, 2 deletions
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