Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

feat(core): use experimental route handlers instead of api routes #22

@plushdohn

Description

@plushdohn

I don't like that Catalyst still depends on Next's pages directory for its back-end. We should fully embrace the new app directory and use route handlers instead.

The new folder structure when using Catalyst might become:

app/
 catalyst/
  [[...catalyst]]/
   page.ts // Root page
  api/
   [...catalyst]/
    route.ts // Root endpoint

This might not be completely straight-forward as route handlers need a named export for each HTTP method, so the API might get a little dirtier. We also need to keep working around Auth.js requirements for auth endpoints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions