-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
Decorators defined on define-route are lost when this module is mounted as sub-module into other module.
My simplified situation is like this:
packages.lisp
(restas:define-module #:test
(:use #:cl))
(restas:define-module #:test.admin
(:use #:cl))admin.lisp
(in-package #:test.admin)
(defclass login-required-route (routes:proxy-route) ())
(defmethod restas:process-route ((route login-required-route) bindings)
(break)) ;; Not breaking
(defun @login-required (route)
(make-instance 'login-required-route :target route))
(restas:define-route admin-index ("")
(:decorators '@login-required)
"In admin")test.lisp
(in-package #:test)
(restas:mount-module admin (#:test.admin)
(:url "admin"))Going to /admin/ is not actually breaking in this case.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels