refactor: migrate auth routes to v1 package (#1841)

* feat: add api v1 packages

* chore: migrate auth to v1

* chore: update test
This commit is contained in:
boojack
2023-06-17 21:25:46 +08:00
committed by GitHub
parent f1d85eeaec
commit 4ed9a3a0ea
16 changed files with 180 additions and 131 deletions

View File

@ -10,6 +10,7 @@ import (
"github.com/pkg/errors"
"github.com/stretchr/testify/require"
"github.com/usememos/memos/api"
apiv1 "github.com/usememos/memos/api/v1"
)
func TestMemoServer(t *testing.T) {
@ -18,7 +19,7 @@ func TestMemoServer(t *testing.T) {
require.NoError(t, err)
defer s.Shutdown(ctx)
signup := &api.SignUp{
signup := &apiv1.SignUp{
Username: "testuser",
Password: "testpassword",
}