Implement lib to generate fake data for testing
This commit is contained in:
parent
801efeac7e
commit
e05fba69e7
4 changed files with 111 additions and 0 deletions
5
main.go
5
main.go
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue