Rename webhook_handler to api

Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
This commit is contained in:
justusbunsi 2021-10-10 16:18:14 +02:00
parent e20b1469d3
commit 46c5ab2aec
No known key found for this signature in database
GPG key ID: 990B348ECAC9C7DB
6 changed files with 8 additions and 7 deletions

View file

@ -5,8 +5,9 @@ import (
"os"
"path"
"gitea-sonarqube-pr-bot/internal/api"
"gitea-sonarqube-pr-bot/internal/settings"
handler "gitea-sonarqube-pr-bot/internal/webhook_handler"
"github.com/urfave/cli/v2"
)
@ -26,7 +27,7 @@ func main() {
Name: "gitea-sonarqube-pr-bot",
Usage: "Improve your experience with SonarQube and Gitea",
Description: `By default, gitea-sonarqube-pr-bot will start running the webserver if no arguments are passed.`,
Action: handler.Serve,
Action: api.Serve,
}
err := app.Run(os.Args)

View file

@ -1,4 +1,4 @@
package webhook_handler
package api
import (
"fmt"

View file

@ -1,4 +1,4 @@
package webhook_handler
package api
import (
"fmt"

View file

@ -1,4 +1,4 @@
package webhook_handler
package api
import (
"io/ioutil"

View file

@ -1,4 +1,4 @@
package webhook_handler
package api
import (
"fmt"

View file

@ -1,4 +1,4 @@
package webhook_handler
package api
import (
"bytes"