- plugin golem15.feedback (requires golem15.user), its config, lang (en, pl), models and migrations
- typed settings singleton golem15_feedback_settings with the WinterCMS defaults and a widget key generated on first creation
- GET /_feedback/api/v1/{key}/config behind the constant-time key check and the fail-closed Origin allow-list, with the feedback-config and feedback-submit buckets
18 lines
451 B
Go
18 lines
451 B
Go
// Package updates holds the golem15.feedback migrations.
|
|
package updates
|
|
|
|
import "github.com/go-gormigrate/gormigrate/v2"
|
|
|
|
var all []*gormigrate.Migration
|
|
|
|
// Register appends gormigrate steps, so a migration file adds itself
|
|
// without editing plugin.go.
|
|
func Register(ms ...*gormigrate.Migration) {
|
|
all = append(all, ms...)
|
|
}
|
|
|
|
// All returns every migration registered by this package, in order.
|
|
func All() []*gormigrate.Migration {
|
|
return all
|
|
}
|