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

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

Open
plushdohn opened this issue May 2, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@plushdohn
Copy link
Collaborator

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.

@plushdohn plushdohn added the enhancement New feature or request label May 2, 2023
@plushdohn plushdohn changed the title improv(core): use experimental route handlers instead of api endpoints feat(core): use experimental route handlers instead of api endpoints May 8, 2023
@plushdohn plushdohn changed the title feat(core): use experimental route handlers instead of api endpoints feat(core): use experimental route handlers instead of api routes May 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant