diff options
Diffstat (limited to 'src/xhtml.cr')
-rw-r--r-- | src/xhtml.cr | 4 |
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 |