Fixed typo in Gruntfile; added Make tasks to compile frontend assets; Modernized the gathering of benchmark result data for the test view
This commit is contained in:
@ -58,4 +58,18 @@ func RegisterRoutes(f *flamego.Flame) {
|
||||
f.Group("/result", func() {
|
||||
f.Post("/add", binding.Form(forms.ResultForm{}), routes.ResultPostCreate)
|
||||
})
|
||||
|
||||
// API v1 routes
|
||||
f.Group("/api", func () {
|
||||
f.Group("/v1", func() {
|
||||
f.Group("/benchmark", func() {
|
||||
f.Get("/details", routes.ApiV1BenchmarkDetails)
|
||||
})
|
||||
|
||||
f.Group("/result", func() {
|
||||
f.Post("/add", binding.Form(forms.ResultForm{}), routes.ApiV1ResultAdd)
|
||||
f.Get("/list", routes.ApiV1ResultList)
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user