aboutsummaryrefslogtreecommitdiff
path: root/src/guff.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff.cr')
-rw-r--r--src/guff.cr7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/guff.cr b/src/guff.cr
index 2468c25..70bbc71 100644
--- a/src/guff.cr
+++ b/src/guff.cr
@@ -242,13 +242,14 @@ module Guff
end
end
- class AssetsHandler < AuthenticatedHandler
+ # TODO: check referrer, add x-frame-options
+ class AssetsHandler < Handler
def initialize(context : Context)
- super(context, %w{admin editor})
+ super(context)
@etags = {} of String => String
end
- def authenticated_call(context : HTTP::Server::Context)
+ def call(context : HTTP::Server::Context)
req_path = context.request.path.not_nil!
if matching_request?(context.request.method, req_path)