-
Notifications
You must be signed in to change notification settings - Fork 3
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 #189 from boostcamp-2020/dev
5주차 코드 프리징
- Loading branch information
Showing
204 changed files
with
2,888 additions
and
1,743 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: deploy | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the main branch | ||
on: | ||
push: | ||
branches: master | ||
|
||
jobs: | ||
build: | ||
name: Build and Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy backend server | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.BACKEND_HOST }} | ||
username: ${{ secrets.BACKEND_USERNAME }} | ||
password: ${{ secrets.BACKEND_PASSWORD }} | ||
script: | | ||
bash deploy-backend.sh | ||
- name: Deploy frontend server | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.FRONTEND_HOST }} | ||
username: ${{ secrets.FRONTEND_USERNAME }} | ||
password: ${{ secrets.FRONTEND_PASSWORD }} | ||
script: | | ||
bash deploy-frontend.sh |
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
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import express from 'express' | ||
const { Auth } = require('../../middleware/auth') | ||
const { Auth, InviteAuth } = require('../../middleware/auth') | ||
const router = express.Router() | ||
const controller = require('./workspace') | ||
|
||
router.get('/', Auth, controller.getWorkspaces) | ||
router.post('/', Auth, controller.createWorkspace) | ||
router.post('/invite', Auth, controller.invite) | ||
router.get('/invite/:code', Auth, controller.invited) | ||
router.get('/invite/:code', InviteAuth, controller.invited) | ||
router.get('/check-duplicate-name', Auth, controller.checkDuplicateName) | ||
router.get('/info/:workspaceId', Auth, controller.getWorkspaceUserInfo) | ||
router.get('/info', Auth, controller.getWorkspaceUserInfoByInfoId) | ||
|
||
module.exports = router |
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.