mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
feat(routes): move the cors handler from /v2 to only where it's needed (#1457)
Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
@@ -5,11 +5,17 @@ const (
|
||||
ExtCatalogPrefix = "/_catalog"
|
||||
ExtOciDiscoverPrefix = "/_oci/ext/discover"
|
||||
// zot specific extensions.
|
||||
ExtPrefix = "/_zot/ext"
|
||||
ExtSearchPrefix = ExtPrefix + "/search"
|
||||
FullSearchPrefix = RoutePrefix + ExtSearchPrefix
|
||||
ExtMgmtPrefix = ExtPrefix + "/mgmt"
|
||||
FullMgmtPrefix = RoutePrefix + ExtMgmtPrefix
|
||||
ExtUserPreferencesPrefix = ExtPrefix + "/userprefs"
|
||||
ExtPrefix = "/_zot/ext"
|
||||
|
||||
ExtSearch = "/search"
|
||||
ExtSearchPrefix = ExtPrefix + ExtSearch
|
||||
FullSearchPrefix = RoutePrefix + ExtSearchPrefix
|
||||
|
||||
ExtMgmt = "/mgmt"
|
||||
ExtMgmtPrefix = ExtPrefix + ExtMgmt
|
||||
FullMgmtPrefix = RoutePrefix + ExtMgmtPrefix
|
||||
|
||||
ExtUserPreferences = "/userprefs"
|
||||
ExtUserPreferencesPrefix = ExtPrefix + ExtUserPreferences
|
||||
FullUserPreferencesPrefix = RoutePrefix + ExtUserPreferencesPrefix
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user