Skip to content

Commit

Permalink
Merge pull request #78 from aquariophilie/client-integration
Browse files Browse the repository at this point in the history
Client integration
  • Loading branch information
gmacario authored Aug 9, 2021
2 parents 1e04e6c + 5457989 commit 733cfe9
Show file tree
Hide file tree
Showing 11 changed files with 2,743 additions and 212 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ COPY . .
RUN npm run build:server
# RUN ls -la
# RUN ls -laR dist/
CMD ["node", "dist/app.js"]
CMD ["npm", "run", "serve:prod"]
# -----------------------------------------------------------------
#
# EOF
14 changes: 14 additions & 0 deletions client/src/lib/requests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import axios from 'axios'

const apiPath = '/api/author'

function getAuthors () {
axios.get(`${apiPath}`)
.then((res) => {
return (res.data)
})
}

export default {
getAuthors
}
34 changes: 0 additions & 34 deletions client/src/routes/api/authors/[slug].js

This file was deleted.

29 changes: 0 additions & 29 deletions client/src/routes/api/authors/index.js

This file was deleted.

35 changes: 0 additions & 35 deletions client/src/routes/api/books/[slug].js

This file was deleted.

10 changes: 0 additions & 10 deletions client/src/routes/api/books/index.js

This file was deleted.

Loading

0 comments on commit 733cfe9

Please sign in to comment.