blinkk/amagaki

Simplify adding routes

jeremydw opened this issue · 1 comments

There are many cases where we want to add more complex route providers and have dynamic routing but we should also have the ability to simply and quickly add concrete routes to a site.

Example:

pod.router.addRoute({
  path: '/path/to/route',
  contentType: 'text/plain',
  build: async function() {
    return 'foo';
  }
});

Implemented in 77512c2