Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoubfaouzi committed Jan 20, 2025
1 parent 781386c commit 7316eed
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
7 changes: 5 additions & 2 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,10 @@ const docTemplate = `{
},
"/contact/": {
"post": {
"description": "Handles form-data sent via landing page.",
"description": "Handles contact us form-data sent via landing page.",
"produces": [
"application/json"
],
"tags": [
"Support"
],
Expand Down Expand Up @@ -945,7 +948,7 @@ const docTemplate = `{
}
}
},
"/files/search": {
"/files/search/": {
"post": {
"security": [
{
Expand Down
7 changes: 5 additions & 2 deletions docs/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions docs/swagger.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/file/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (r resource) list(c echo.Context) error {
// @Failure 403 {object} errors.ErrorResponse
// @Failure 404 {object} errors.ErrorResponse
// @Failure 500 {object} errors.ErrorResponse
// @Router /files/search [post]
// @Router /files/search/ [post]
// @Security Bearer
func (r resource) search(c echo.Context) error {
ctx := c.Request().Context()
Expand Down
3 changes: 2 additions & 1 deletion internal/support/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ type resource struct {


// @Summary Contact Us
// @Description Handles form-data sent via landing page.
// @Description Handles contact us form-data sent via landing page.
// @Tags Support
// @Produce json
// @Param email body string true "The user's email"
// @Param subject body string true "The subject of the email"
// @Param message body string true "The content of the email"
Expand Down

0 comments on commit 7316eed

Please sign in to comment.