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

Invite system #390

Open
BassOfBass opened this issue Nov 25, 2020 · 2 comments
Open

Invite system #390

BassOfBass opened this issue Nov 25, 2020 · 2 comments

Comments

@BassOfBass
Copy link
Collaborator

BassOfBass commented Nov 25, 2020

As per #387 there is a need for system to control the amount of incoming accounts.
It would look something like this:

Frontend

Backend

  • A new model looking something like this.
  • Endpoints and logic for handling ran out/expired invites and creating new ones.
  • Some sort of a global state switch allowing to turn the whole instance into invite-only mode and back.

Endpoints:

  • GET /admin/invitations - the list of all invitations in the database.

  • GET /admin/invitations/:code- the expanded details of a given invitation.

  • GET /admin/invitations/:code/edit - edit a given invitation.

  • POST /admin/invitations - API for fetching invitations.

  • POST /admin/invitations/create - API for creating invitations.

  • POST /admin/invitations/edit - API for editing existing invitations.

@mayeaux
Copy link
Owner

mayeaux commented Nov 27, 2020

Looks really cool.

@BassOfBass
Copy link
Collaborator Author

@mayeaux
Already working on it btw: invite system branch.
I saw some inconsistent exporting style between modules, is it okay if I change exports.Property to module.exports ones in the files I'll have to edit?
Also is there a particular reason you aren't using Express.Route and just dump all routes in routes.js? It already looks quite unwieldy tbh.

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

No branches or pull requests

2 participants