-
-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add directive auto complete and documents #816
- Loading branch information
Showing
25 changed files
with
4,288 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package nginx | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/0xJacky/Nginx-UI/internal/nginx" | ||
"github.com/gin-gonic/gin" | ||
"github.com/uozi-tech/cosy" | ||
) | ||
|
||
func GetDirectives(c *gin.Context) { | ||
directives, err := nginx.GetDirectives() | ||
if err != nil { | ||
cosy.ErrHandler(c, err) | ||
return | ||
} | ||
c.JSON(http.StatusOK, directives) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
en zh_CN zh_TW fr_FR es de_DE ru_RU vi_VN ko_KR tr_TR ar | ||
en zh_CN zh_TW fr_FR es de_DE ru_RU vi_VN ko_KR tr_TR ar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.