]> BookStack Code Mirror - bookstack/blobdiff - app/Theming/ThemeEvents.php
LogicalTheme: Added events for registering web routes
[bookstack] / app / Theming / ThemeEvents.php
index 4b56b2f56c119c596e2d8684a1e2569d65428bb7..9e14707dea055dc73014f2f0fd0a0853b259649f 100644 (file)
@@ -98,6 +98,25 @@ class ThemeEvents
      */
     const PAGE_INCLUDE_PARSE = 'page_include_parse';
 
+    /**
+     * Routes register web event.
+     * Called when standard web (browser/non-api) app routes are registered.
+     * Provides an app router, so you can register your own web routes.
+     *
+     * @param \Illuminate\Routing\Router
+     */
+    const ROUTES_REGISTER_WEB = 'routes_register_web';
+
+    /**
+     * Routes register web auth event.
+     * Called when auth-required web (browser/non-api) app routes can be registered.
+     * These are routes that typically require login to access (unless the instance is made public).
+     * Provides an app router, so you can register your own web routes.
+     *
+     * @param \Illuminate\Routing\Router
+     */
+    const ROUTES_REGISTER_WEB_AUTH = 'routes_register_web_auth';
+
     /**
      * Web before middleware action.
      * Runs before the request is handled but after all other middleware apart from those