Skip to content

router: change assets return type from Route to AssetHandler #3504

Description

@jknack

So it can be easily configured when need it.

Instead of:

assets("/path", new AssetHandler(AssetSource.create("path")).setMaxAge(Duration.ofDays(365)));

Now we get:

  assets("/path", "path")
     .setMaxAge(Duration.ofDays(365)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions