General stats api fix (#29)

* refactor and validation
This commit is contained in:
gadotroee
2021-05-05 12:33:53 +03:00
committed by GitHub
parent 4d6528771a
commit ed0d7ef8db
4 changed files with 50 additions and 45 deletions

View File

@@ -12,5 +12,6 @@ func EntriesRoutes(fiberApp *fiber.App) {
routeGroup.Get("/entries", controllers.GetEntries) // get entries (base/thin entries)
routeGroup.Get("/entries/:entryId", controllers.GetEntry) // get single (full) entry
routeGroup.Get("/resetDB", controllers.DeleteAllEntries) // get single (full) entry
routeGroup.Get("/resetDB", controllers.DeleteAllEntries) // get single (full) entry
routeGroup.Get("/generalStats", controllers.GetGeneralStats) // get general stats about entries in DB
}