Implement lib to generate fake data for testing

This commit is contained in:
William Bouzourène 2025-01-23 15:53:58 +01:00
parent 801efeac7e
commit e05fba69e7
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
4 changed files with 111 additions and 0 deletions

View file

@ -205,6 +205,11 @@ func main() {
app.Post("/admin/roles/:id<int;min(0)>/edit", controllers.RoleEdit)
app.Post("/admin/roles/:id<int;min(0)>/delete", controllers.RoleDelete)
if config.Debug {
app.Get("/debug/fake-members/:number<int;min(1)>", controllers.DebugFakeMembers)
app.Get("/debug/fake-contacts/:number<int;min(1)>", controllers.DebugFakeContacts)
}
log.Info(
"starting web server",
"address", config.App.ListenAddress,