base/src/sqwl/cms/Server.scala
changeset 7 50a354e5bda4
parent 4 1a1347e8c5be
child 13 216da61215db
--- a/base/src/sqwl/cms/Server.scala	Tue Dec 04 13:18:02 2018 +0100
+++ b/base/src/sqwl/cms/Server.scala	Thu Dec 06 13:27:14 2018 +0100
@@ -45,8 +45,12 @@
       }
     } ~ pathPrefix(http.prefix / ASSETS) {
       getFromResourceDirectory("META-INF/resources/webjars")
+    } ~ pathPrefix(http.prefix / PUBLIC / content.icon._1) {
+      getFromFile(content.icon._2.toFile)
+    } ~ pathPrefix(http.prefix / PUBLIC / content.styleSheet._1) {
+      getFromFile(content.styleSheet._2.toFile)
     } ~ pathPrefix(http.prefix / PUBLIC) {
-      getFromResourceDirectory("public")
+      getFromDirectory(content.publicAssets.toString)
     }
   }