Skip to content

Commit

Permalink
fix: urls
Browse files Browse the repository at this point in the history
  • Loading branch information
guimroque committed Jun 24, 2024
1 parent 3cc6514 commit b08e5b3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/aws-deploy-api.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Prod Deploy API to Amazon ECS
name: [API] Deploy to Amazon ECS

on:
push:
branches: [ FEAT/get-ci ]

jobs:
deploy:
name: Deploy API to Amazon ECS
name: [API] Deploy to Amazon ECS
runs-on: ubuntu-latest

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/aws-deploy-socket.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Prod Deploy Socket Server to Amazon ECS
name: [Socket Server] Deploy to Amazon ECS

on:
push:
branches: [ FEAT/get-ci ]

jobs:
deploy:
name: Deploy Socket Server to Amazon ECS
name: [Socket Server] Deploy to Amazon ECS
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ router.use('/workspace', workspace);

// ping route
router.get('/ping', ({ res }) =>
res.send(`${new Date().toISOString()} ${process.env.APP_NAME}`),
res.send(`${new Date().toISOString()} ${process.env.API_NAME}`),
);

// healthcheck route
Expand Down
6 changes: 0 additions & 6 deletions packages/socket-server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ const io = new socketIo.Server(server, {
connectTimeout: Number(TIMEOUT_DICONNECT), // 30 mins
})

// Endpoint de teste para o Express
app.get('/', (req, res) => {
res.status(200)
res.json({ message: `${APP_NAME} ${new Date()}` })
})

// Health Check
app.get('/health', ({ res }) =>
res.status(200).send({ status: 'ok', message: `Health check ${process.env.APP_NAME} passed` }),
Expand Down

0 comments on commit b08e5b3

Please sign in to comment.