Css + fonts..
This commit is contained in:
@@ -27,8 +27,9 @@ class Router(
|
||||
) {
|
||||
operator fun invoke(): RoutingHttpHandler {
|
||||
|
||||
val resourceLoader = ResourceLoader.Classpath(("/static"))
|
||||
val basicRoutes = routes(
|
||||
ImmutableFilter().then(static(ResourceLoader.Classpath(("/static")))),
|
||||
ImmutableFilter().then(static(resourceLoader, "woff2" to ContentType("font/woff2"))),
|
||||
)
|
||||
|
||||
fun public(request: Request, handler: PublicHandler) = handler(request, request.jwtPayload(contexts))
|
||||
|
||||
Reference in New Issue
Block a user