refactor: drop the quiz import and the golem15.quizzes dependency

golem15.quizzes now serves its own import at /api/v1/quizzes/import behind
the same shared API token.
This commit is contained in:
Jakub Zych
2026-10-04 23:15:01 +02:00
parent 97000dcd1e
commit 840935d22d
6 changed files with 7 additions and 52 deletions

View File

@@ -54,9 +54,8 @@ type Plugin struct {
func (p *Plugin) ID() string { return "jz.bm" }
// Requires golem15.user: its users table holds the students, and its
// jwt.auth middleware guards the API. golem15.quizzes holds the quizzes the
// management API imports.
func (p *Plugin) Requires() []string { return []string{"golem15.user", "golem15.quizzes"} }
// jwt.auth and user.api_token middleware guard the APIs.
func (p *Plugin) Requires() []string { return []string{"golem15.user"} }
func (p *Plugin) Register(app *backpack.App) error {
p.app = app