Skip to content

Commit

Permalink
Redeployement cyclic-software#1
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidibnu committed Nov 2, 2022
1 parent afa93a8 commit 7174501
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const express = require('express')
const app = express()
const db = require('cyclic-dynamodb')

const APIMANGROVE = require('./repo/api')
app.use(express.json())
app.use(express.urlencoded({ extended: true }))

Expand Down Expand Up @@ -62,7 +62,7 @@ app.get('/:col', async (req, res) => {

// Catch all handler for all other request.
app.use('*', (req, res) => {
res.json({ msg: 'no route handler found' }).end()
res.json(APIMANGROVE())
})

// Start the server
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"nodemon": "^2.0.16"
},
"dependencies": {
"cyclic-dynamodb": "0.0.21",
"cyclic-dynamodb": "^0.0.21",
"env-cmd": "^10.1.0",
"express": "^4.18.2"
}
Expand Down
6 changes: 6 additions & 0 deletions repo/api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = function APIMANGROVE (){
return {
version :1.0,
status:'Development'
}
}

0 comments on commit 7174501

Please sign in to comment.