diff options
author | 无闻 <u@gogs.io> | 2016-08-30 16:47:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-30 16:47:22 -0700 |
commit | cd9b926af7d186c82997c26fea0bbdeed447b4dc (patch) | |
tree | d9b0e47314b291850f71b59477bce27eb577c4fa /routers/api/v1/api.go | |
parent | 8516dfcb6cb008f286ec84bed4243928acb94844 (diff) | |
parent | 9ac46fb983f31cfece76e2181a9fe73b71f02e2e (diff) | |
download | gitea-cd9b926af7d186c82997c26fea0bbdeed447b4dc.tar.gz gitea-cd9b926af7d186c82997c26fea0bbdeed447b4dc.zip |
Support Editorconfig on web editor (#3512)
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 16322fbffd..0591cddb86 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -290,6 +290,7 @@ func RegisterRoutes(m *macaron.Macaron) { Patch(reqRepoWriter(), bind(api.EditMilestoneOption{}), repo.EditMilestone). Delete(reqRepoWriter(), repo.DeleteMilestone) }) + m.Get("/editorconfig/:filename", context.RepoRef(), repo.GetEditorconfig) }, repoAssignment()) }, reqToken()) |