From 872d83661e373a835a2d9e5385003ddbd194e1f9 Mon Sep 17 00:00:00 2001 From: liuzx Date: Tue, 15 Mar 2022 22:17:42 +0800 Subject: [PATCH] fix-bug --- routers/routes/routes.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 88708f226..226c4c34d 100755 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -987,10 +987,10 @@ func RegisterRoutes(m *macaron.Macaron) { m.Post("/create", reqRepoDatasetWriter, bindIgnErr(auth.CreateDatasetForm{}), repo.CreateDatasetPost) m.Get("/edit/:id", reqRepoDatasetWriter, repo.EditDataset) m.Post("/edit", reqRepoDatasetWriter, bindIgnErr(auth.EditDatasetForm{}), repo.EditDatasetPost) - m.Get("/current_repo", reqRepoDatasetReader, repo.CurrentRepoDataset) - m.Get("/my_datasets", reqRepoDatasetReader, repo.MyDatasets) - m.Get("/public_datasets", reqRepoDatasetReader, repo.PublicDataset) - m.Get("/my_favorite", reqRepoDatasetReader, repo.MyFavoriteDataset) + m.Get("/current_repo", repo.CurrentRepoDataset) + m.Get("/my_datasets", repo.MyDatasets) + m.Get("/public_datasets", repo.PublicDataset) + m.Get("/my_favorite", repo.MyFavoriteDataset) m.Group("/dirs", func() { m.Get("/:uuid", reqRepoDatasetReader, repo.DirIndex)