mirror of
https://github.com/pushbits/server.git
synced 2025-04-30 02:36:53 +02:00
fix swag location
This commit is contained in:
parent
26187a8adf
commit
62af2424fa
2 changed files with 2 additions and 4 deletions
4
.github/workflows/documentation.yml
vendored
4
.github/workflows/documentation.yml
vendored
|
@ -20,12 +20,10 @@ jobs:
|
|||
ref: ${{ github.head_ref }}
|
||||
- name: Install swag
|
||||
run: go install github.com/swaggo/swag/cmd/swag
|
||||
- name: debug
|
||||
run: cd / && find * | grep swag
|
||||
- name: Install redoc
|
||||
run: sudo apt install npm && sudo npm install redoc
|
||||
- name: Build the api documentation
|
||||
run: swag init --parseDependency=true -d . -g cmd/pushbits/main.go
|
||||
run: /home/runner/go/bin/swag init --parseDependency=true -d . -g cmd/pushbits/main.go
|
||||
- name: Build static html
|
||||
run: npx redoc-cli bundle docs/swagger.yaml --output index.html
|
||||
# TODO copy index.html to new repo
|
|
@ -74,7 +74,7 @@ func (h *NotificationHandler) CreateNotification(ctx *gin.Context) {
|
|||
// @Summary Delete a Notification
|
||||
// @Description Informs the channel that the notification is deleted
|
||||
// @Accept json,mpfd
|
||||
// @Produce json
|
||||
// @Produce json
|
||||
// @Param message_id path string true "ID of the message to delete"
|
||||
// @Param token query string true "Channels token, can also be provieded in the header"
|
||||
// @Success 200 ""
|
||||
|
|
Loading…
Add table
Reference in a new issue