Browse Source

fix-bug

tags/v1.22.3.2^2
liuzx 3 years ago
parent
commit
872d83661e
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      routers/routes/routes.go

+ 4
- 4
routers/routes/routes.go View File

@@ -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)


Loading…
Cancel
Save