From b44513b8a5194611e4bcf257b938139607c28c58 Mon Sep 17 00:00:00 2001 From: Peter Nowee Date: Thu, 20 Jul 2023 15:25:46 +0200 Subject: [PATCH] Correct dispatcher function name define_layers Prevents error: dispatcher_1 | == Compilation error in file lib/dispatcher.ex == dispatcher_1 | ** (CompileError) lib/dispatcher.ex:12: undefined function layers/1 --- config/dispatcher/dispatcher.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 0ac2525..3207740 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -9,7 +9,7 @@ defmodule Dispatcher do @json %{ accept: %{ json: true } } @html %{ accept: %{ html: true } } - layers [ :static, :services, :fall_back, :not_found ] + define_layers [ :static, :services, :fall_back, :not_found ] # In order to forward the 'themes' resource to the # resource service, use the following forward rule: