Added ability to edit benchmark parameters
This commit is contained in:
@@ -41,6 +41,9 @@ func RegisterRoutes(f *flamego.Flame) {
|
||||
f.Post("/create", binding.Form(forms.BenchmarkForm{}), routes.BenchmarkPostCreate)
|
||||
|
||||
f.Get("/{benchmark_id}", routes.BenchmarkGetView)
|
||||
|
||||
f.Get("/{benchmark_id}/edit", routes.BenchmarkGetEdit)
|
||||
f.Post("/{benchmark_id}/edit", binding.Form(forms.BenchmarkForm{}), routes.BenchmarkPostEdit)
|
||||
})
|
||||
|
||||
// test routes
|
||||
|
Reference in New Issue
Block a user