refactor(routes): move from ref to currentRef
+ 3
- 3
this is in order to avoid keyword naming clash when serialization happens

context: ref is React internal thing and we do not really want to mess with this at all

@@ -470,7 +470,7 @@ const RootAppRouter: AppRouter = () => {
         <Router.Route
           name={AppRoute.REPOSITORY_COMMITS_LOG}
           method={"GET"}
-          path={"/:orgSlug/:repoSlug/:ref/commits"}
+          path={"/:orgSlug/:repoSlug/:currentRef/commits"}
           schema={AppRoutesSchemas[AppRoute.REPOSITORY_COMMITS_LOG]}
           handler={RepositoryController.getRepositoryCommitsLogView}
         />

...
@@ -513,14 +513,14 @@ const RootAppRouter: AppRouter = () => {
         <Router.Route
           name={AppRoute.REPOSITORY_BROWSER}
           method={"GET"}
-          path={"/:orgSlug/:repoSlug/:ref/tree"}
+          path={"/:orgSlug/:repoSlug/:currentRef/tree"}
           schema={AppRoutesSchemas[AppRoute.REPOSITORY_BROWSER]}
           handler={RepositoryController.getRepositoryBrowserView}
         />
         <Router.Route
           name={AppRoute.REPOSITORY_BROWSER}
           method={"GET"}
-          path={"/:orgSlug/:repoSlug/:ref/tree/*"}
+          path={"/:orgSlug/:repoSlug/:currentRef/tree/*"}
           schema={AppRoutesSchemas[AppRoute.REPOSITORY_BROWSER]}
           handler={RepositoryController.getRepositoryBrowserView}
         />