edit: unique code shortlink ambil dari tabel shortcodes
This commit is contained in:
@@ -108,6 +108,9 @@ func SetupRouter(cfg *config.Config, logger *zap.Logger) http.Handler {
|
||||
shortLinkHandler := handlers.NewShortLinkHandler(logger, shortLinkService)
|
||||
r.Post("/generate-link", shortLinkHandler.GenerateShortLink)
|
||||
|
||||
// Shortcode recycling - only for admin role (role check is in the handler)
|
||||
r.Post("/recycle-shortcode", shortLinkHandler.RecycleShortcodes)
|
||||
|
||||
// DICOM Web routes
|
||||
r.Route("/dicomWeb", func(r chi.Router) {
|
||||
// Add audit logging middleware to DICOM routes
|
||||
|
||||
Reference in New Issue
Block a user