Started working on test edit page; removed nodemon because it wasn't working
This commit is contained in:
@ -51,7 +51,10 @@ func RegisterRoutes(f *flamego.Flame) {
|
||||
f.Get("/create", routes.TestGetCreate)
|
||||
f.Post("/create", binding.Form(forms.TestForm{}), routes.TestPostCreate)
|
||||
|
||||
f.Get("/{test_id}", routes.TestGetView)
|
||||
f.Group("/{test_id}", func() {
|
||||
f.Get("", routes.TestGetView)
|
||||
f.Get("/edit", routes.TestGetEdit)
|
||||
})
|
||||
})
|
||||
|
||||
// result routes
|
||||
|
Reference in New Issue
Block a user