Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

break(bff): add bff and arango to ogree-core #156

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
a1fb080
feat(arango): add arango api to Core
vbeaucha Aug 3, 2023
d38f2fa
feat(arango): add arango api to docker compose
vbeaucha Aug 3, 2023
ad327f8
fix(port): arango_api_port has a variable
vbeaucha Aug 4, 2023
e9e6eaf
fix(package): rename go-api to arango-api
vbeaucha Aug 4, 2023
206b0f3
feat(Auth): add Authorization Bearer to arango api
vbeaucha Aug 4, 2023
fef67bd
fix(health): add healthcheck on /api/v1/health
vbeaucha Aug 4, 2023
d1342d5
feat(device): get device connected to another
vbeaucha Aug 4, 2023
1dc5dad
fix(router): rename route getDevicesConnecteTo
vbeaucha Aug 7, 2023
4adff32
feat(bff): init bff
vbeaucha Aug 7, 2023
475be05
feat(bff): add route Organization and Objects
vbeaucha Aug 8, 2023
3e03e61
feat(bff): add flutterApp and about route to bff
vbeaucha Aug 8, 2023
b910474
feat(bff): add bff to docker-compose
vbeaucha Aug 8, 2023
2c06c39
fix(swagger): remove ussless swagger.yaml
vbeaucha Aug 8, 2023
4edf91d
fix(bff): fix arango url in docker-compose
vbeaucha Aug 8, 2023
97eff20
fix(bff): many fix in bff
vbeaucha Aug 8, 2023
202d13a
fix(bff): return text message if response body is not json
vbeaucha Aug 9, 2023
304d092
feat(bff): modify commandline get into CLI to use arango
vbeaucha Aug 9, 2023
a9bc506
fix(cli): add error message if device not found
vbeaucha Aug 9, 2023
ff3510a
feat(cli): binding info from object and devices
vbeaucha Aug 9, 2023
2f9848c
fix(bff): rename database and changing route for binding
vbeaucha Aug 9, 2023
f261229
feat(bff): update devices routes
vbeaucha Aug 10, 2023
a44fb6e
readme(ARANGO): add readme for arango api
vbeaucha Aug 10, 2023
d64bb58
fix(bff): api info for bff has json file
vbeaucha Aug 10, 2023
8e5c82e
fix(bff): stop exposing api into docker compose
vbeaucha Aug 10, 2023
e735b18
fix(doc): add BFF readme.md
vbeaucha Aug 10, 2023
7c03a9e
fix(cli): correct function that never return error
vbeaucha Aug 10, 2023
fa6ae74
fix(doc): add info for config file of bff
vbeaucha Aug 10, 2023
4bc4313
fix(bff): remove useless code
vbeaucha Aug 11, 2023
1d50e0c
Add arango profile, expose API
helderbetiol Aug 11, 2023
249ed07
fix(bff): change routes /api/devices by /api/deviceComp/ to avoid con…
vbeaucha Aug 11, 2023
14fae4d
fix(bff): add allowAllCrossOrigin
vbeaucha Aug 11, 2023
346fc65
fix(bff): add options to cors
vbeaucha Aug 11, 2023
02222ff
Add Arango+BFF to SuperAdmin APP
helderbetiol Aug 11, 2023
e688de1
Fix superadmin deploy without Arango
helderbetiol Aug 11, 2023
28f5165
fix(deploy): change dockerfile to match other
vbeaucha Aug 17, 2023
20fc276
chore(dep): update dependencies
vbeaucha Aug 17, 2023
9d56df2
chore(ci): generate release note
vbeaucha Aug 17, 2023
e5e161b
fix(SA): set bffPort from APIPort if null
vbeaucha Aug 17, 2023
fab48aa
doc(bff): using bff
vbeaucha Aug 17, 2023
636c301
refacto getPNode (nodeToString) for consistency
GeremWD Aug 17, 2023
cac4c32
chore(deploy): api_list can use project env var
GeremWD Aug 21, 2023
c820d64
fix(build): enable bff build
vbeaucha Aug 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(health): add healthcheck on /api/v1/health
vbeaucha committed Aug 23, 2023
commit fef67bdc46ab2ca19687f04a39b54b099b99c434
5 changes: 4 additions & 1 deletion ARANGO_API/services/router.go
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ func JwtAuthMiddleware() gin.HandlerFunc {
return func(c *gin.Context) {
err := token.TokenValid(c)
if err != nil {
c.String(http.StatusUnauthorized, "Unauthorized")
c.IndentedJSON(http.StatusUnauthorized,gin.H{"message":"Unauthorized"})
c.Abort()
return
}
@@ -53,6 +53,9 @@ func InitRouter(db driver.Database, addr string) *gin.Engine {
proteted.POST("/Database", handlers.ConnectBDD)

router.POST("/api/v1/Login",handlers.Login)
router.GET("/api/v1/health",func(c *gin.Context){
c.String(http.StatusAccepted,"")
})

swagger := handlers.SwaggerHandler()
router.Use(gin.WrapH(swagger))