refactor(ci): remove vault web routes and add VS solution
Some checks failed
Build and Release / Integration Tests (PostgreSQL) (push) Has been cancelled
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Has been cancelled
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Has been cancelled
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
Build and Release / Lint (push) Has been cancelled
Build and Release / Create Release (push) Has been cancelled
Build and Release / Unit Tests (push) Has been cancelled
Some checks failed
Build and Release / Integration Tests (PostgreSQL) (push) Has been cancelled
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Has been cancelled
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Has been cancelled
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
Build and Release / Lint (push) Has been cancelled
Build and Release / Create Release (push) Has been cancelled
Build and Release / Unit Tests (push) Has been cancelled
Remove vault web route handlers from main router as they are now handled by the vault plugin itself. Add Visual Studio solution file for C# SDK development and ignore SDK build artifacts.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -134,3 +134,4 @@ Makefile.local
|
||||
/gitcaddy-server
|
||||
/gitcaddy-server-*
|
||||
|
||||
/sdk/csharp/Gitea.SDK/obj
|
||||
|
||||
32
gitcaddy-server.sln
Normal file
32
gitcaddy-server.sln
Normal file
@@ -0,0 +1,32 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.5.2.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sdk", "sdk", "{FF13A09E-0E72-1904-124B-A4E979EF28D3}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "csharp", "csharp", "{455910FC-CC9B-244E-E3A8-78E8113461FC}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gitea.SDK", "sdk\csharp\Gitea.SDK\Gitea.SDK.csproj", "{CC3F3F81-98F0-4F04-FB6D-D977CE0360AA}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{CC3F3F81-98F0-4F04-FB6D-D977CE0360AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CC3F3F81-98F0-4F04-FB6D-D977CE0360AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CC3F3F81-98F0-4F04-FB6D-D977CE0360AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CC3F3F81-98F0-4F04-FB6D-D977CE0360AA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{455910FC-CC9B-244E-E3A8-78E8113461FC} = {FF13A09E-0E72-1904-124B-A4E979EF28D3}
|
||||
{CC3F3F81-98F0-4F04-FB6D-D977CE0360AA} = {455910FC-CC9B-244E-E3A8-78E8113461FC}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {6836703D-481F-41AE-8B58-7FB4F2B4A88C}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -40,7 +40,6 @@ import (
|
||||
"code.gitcaddy.com/server/v3/routers/web/repo"
|
||||
"code.gitcaddy.com/server/v3/routers/web/repo/actions"
|
||||
repo_setting "code.gitcaddy.com/server/v3/routers/web/repo/setting"
|
||||
"code.gitcaddy.com/server/v3/routers/web/repo/vault"
|
||||
shared_actions "code.gitcaddy.com/server/v3/routers/web/shared/actions"
|
||||
"code.gitcaddy.com/server/v3/routers/web/shared/project"
|
||||
"code.gitcaddy.com/server/v3/routers/web/user"
|
||||
@@ -1607,23 +1606,6 @@ func registerWebRoutes(m *web.Router) {
|
||||
}, optSignIn, context.RepoAssignment, repo.MustBeNotEmpty, reqRepoActionsReader, actions.MustEnableActions)
|
||||
// end "/{username}/{reponame}/actions"
|
||||
|
||||
m.Group("/{username}/{reponame}/vault", func() {
|
||||
m.Get("", vault.List)
|
||||
m.Get("/secrets/new", vault.NewSecret)
|
||||
m.Post("/secrets/new", web.Bind(vault.CreateSecretForm{}), vault.CreateSecret)
|
||||
m.Get("/secrets/{name}", vault.View)
|
||||
m.Post("/secrets/{name}", web.Bind(vault.UpdateSecretForm{}), vault.UpdateSecret)
|
||||
m.Post("/secrets/{name}/delete", vault.DeleteSecret)
|
||||
m.Post("/secrets/{name}/restore", vault.RestoreSecret)
|
||||
m.Get("/secrets/{name}/versions", vault.Versions)
|
||||
m.Post("/secrets/{name}/rollback", web.Bind(vault.RollbackForm{}), vault.Rollback)
|
||||
m.Get("/audit", vault.Audit)
|
||||
m.Get("/tokens", vault.Tokens)
|
||||
m.Post("/tokens", web.Bind(vault.CreateTokenForm{}), vault.CreateToken)
|
||||
m.Post("/tokens/{id}/revoke", vault.RevokeToken)
|
||||
}, optSignIn, context.RepoAssignment, repo.MustBeNotEmpty, reqRepoAdmin)
|
||||
// end "/{username}/{reponame}/vault"
|
||||
|
||||
m.Group("/{username}/{reponame}/wiki", func() {
|
||||
m.Combo("").
|
||||
Get(repo.Wiki).
|
||||
|
||||
Reference in New Issue
Block a user