Add api package
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2022-01-20 03:44:33 +01:00
parent faa3cc102f
commit e7c5a672ff
5 changed files with 21 additions and 17 deletions

View File

@@ -13,7 +13,7 @@ import (
"syscall"
"time"
"git.t-juice.club/torjus/gpaste"
"git.t-juice.club/torjus/gpaste/api"
"github.com/google/uuid"
"github.com/urfave/cli/v2"
"golang.org/x/term"
@@ -201,7 +201,7 @@ func ActionUserCreate(c *cli.Context) error {
defer cancel()
body := new(bytes.Buffer)
requestData := &gpaste.RequestAPIUserCreate{
requestData := &api.RequestAPIUserCreate{
Username: username,
Password: password,
}