mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-12 19:55:14 +02:00
12 lines
255 B
Go
12 lines
255 B
Go
package authanalysis
|
|||
|
|||
func registerEchoAdmin(e *echo.Echo) {
|
|||
admin := e.Group("/admin", requireLogin)
|
|||
admin.Use(requireAdmin)
|
|||
admin.POST("/reports/publish", publishReport)
|
|||
}
|
|||
|
|||
func publishReport(c echo.Context) error {
|
|||
return reportService.Publish()
|
|||
}
|