Skip to content

Commit 7422492

Browse files
authored
feat: api layer refactoring (frain-dev#1851)
* feat: api layer refactored * fix: fixed syntax errors * fix: fixed api layer tests * fix: updated githooks * fix: added stub file back * fix: updated githooks * fix: remove update portal link when creating a new portal link * fix: fixed native realm test * fix: added back the configuration.go * fix: added back main.go in the api directory for docs * fix: added back main.go in the api directory for docs * fix: fixed security routes * fix: fixed endpoints used in portal link * fix: updated guest routes
1 parent f54eb27 commit 7422492

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2337
-8711
lines changed

.githooks/pre-commit

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
pwd
77

8-
changed=$(git status -s | grep api/public)
8+
changed=$(git status -s | grep api)
99

1010
echo "$changed"
1111

@@ -15,7 +15,7 @@ then
1515
exit 0
1616
else
1717
# regenerate docs
18-
swag init --generatedTime --parseDependency --parseInternal -d api/public/ api/public/*
18+
swag init --generatedTime --parseDependency --parseInternal -g handlers/main.go -d api/ api/*
1919
go run v3gen/main.go
2020
git add docs/ # add all files under the generated doc folder to git
2121
fi

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# vendor/
1616
.idea
1717

18-
/api/dashboard/ui/build/*
19-
!/api/dashboard/ui/build/go_test_stub.txt
18+
/api/ui/build/*
19+
!/api/ui/build/go_test_stub.txt
2020
/data/mongo/
2121
.DS_Store
2222
*.db

api/api.go

+334-174
Large diffs are not rendered by default.

api/dashboard/delivery_attempt.go

-51
This file was deleted.

api/dashboard/endpoint.go

-291
This file was deleted.

0 commit comments

Comments
 (0)