feat: add invites to backend
This commit is contained in:
parent
47ed36d24c
commit
6237ea940f
7 changed files with 234 additions and 30 deletions
|
@ -63,6 +63,10 @@ func Mount(srv *server.Server, r chi.Router) {
|
|||
// takes discord signup ticket to register account
|
||||
r.Post("/signup", server.WrapHandler(s.discordSignup))
|
||||
})
|
||||
|
||||
// invite routes
|
||||
r.With(server.MustAuth).Get("/invites", server.WrapHandler(s.getInvites))
|
||||
r.With(server.MustAuth).Post("/invites", server.WrapHandler(s.createInvite))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue