-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from PerfectFit-project/285-file-sharing
285 file sharing
- Loading branch information
Showing
14 changed files
with
329 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,8 +24,10 @@ jobs: | |
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 15.x | ||
- run: git config --global url."https://${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}@github.com/".insteadOf ssh://[email protected]/ | ||
|
||
- name: Add private key for goaliejs deployment | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.GOALIEJS_PRIVATE_PULL_KEY }} | ||
- run: npm ci --prefix niceday-api | ||
- run: npm run build --if-present --prefix niceday-api | ||
- name: Test niceday-api | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const utils = require('../utils/writer.jsx'); | ||
const FileSharing = require('../service/FilesSharingService'); | ||
|
||
module.exports.uploadFile = function uploadFile(req, res, next, body) { | ||
FileSharing.uploadFile(req, body) | ||
.then((response) => { | ||
utils.writeJson(res, response); | ||
}) | ||
.catch((response) => { | ||
utils.writeJson(res, response); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.