🐛 Bug fixes on missing urls
This commit is contained in:
@ -2,7 +2,6 @@ package api
|
||||
|
||||
import (
|
||||
"git.solsynth.dev/hypernet/nexus/pkg/nex/sec"
|
||||
"git.solsynth.dev/hypernet/reader/pkg/internal/services"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
@ -13,11 +12,6 @@ func MapAPIs(app *fiber.App, baseURL string) {
|
||||
|
||||
admin := api.Group("/admin").Name("Admin")
|
||||
{
|
||||
admin.Get("/scan", func(c *fiber.Ctx) error {
|
||||
services.ScanNewsSources()
|
||||
return c.SendStatus(fiber.StatusOK)
|
||||
})
|
||||
|
||||
admin.Post("/scan", sec.ValidatorMiddleware, adminTriggerScanTask)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user