Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Admin interface #2

Open
nahtnam opened this issue Aug 28, 2024 · 0 comments
Open

[RFC] Admin interface #2

nahtnam opened this issue Aug 28, 2024 · 0 comments

Comments

@nahtnam
Copy link
Contributor

nahtnam commented Aug 28, 2024

Every existing module type (db, auth, worker) will need to expose certain standard functions. We can use these functions to build up an admin interface without forcing the user to pick a stack.

Auth:

  • isAdmin
  • getAllUsers

DB:

  • getAllTables
  • getTable
  • getRow

Worker:

  • getAllQueues
  • getQueue
  • getQueueItem

Regardless of if you are using Auth.js or Lucia, Drizzle or Prisma, Bull or PgBoss, they will all define as many of those functions as possible, and if they exist, the admin interface will render it at /x/admin (assuming isAdmin returns true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant