Apps

Reblocks sites contain one or more apps, where each app is responsible for serving requests starting from a specific prefix.

For example, a site can have a few apps mounted to /, /shop/, /blog/ and /admin/ prefixes.

The simplest way to define a new app is to use the defapp macro like this:

(defapp blog
  :prefix "/blog/")

And then define a method for the reblocks/session:init generic function. It will be called if a user opens https://yoursite.com/blog/ in their browser.