Skip to content

Commit

Permalink
fix: post archive and other routes auth (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
lautarodragan authored Jul 16, 2019
1 parent d1e65ed commit b7665eb
Show file tree
Hide file tree
Showing 3 changed files with 444 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,14 @@ export const routes = (accountController: AccountController, archiveController:
)
router.patch(
Path.ACCOUNTS_ID,
authentication,
authorization,
validate(PatchAccountSchema),
PatchAccount(accountController),
)
router.post(
Path.ACCOUNTS_ID_POE_CHALLENGE,
authentication,
authorization,
validate(PostAccountPoeChallengeSchema),
PostAccountPoeChallenge(accountController),
Expand Down Expand Up @@ -149,6 +151,7 @@ export const routes = (accountController: AccountController, archiveController:

router.post(
Path.ARCHIVES,
authentication,
authorization,
PostArchive(archiveController),
)
Expand Down
1 change: 1 addition & 0 deletions tests/integration/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ import './create-account.test'
import './health.test'
import './login.test'
import './securityHeaders.test'
import './upload-archive.test'
Loading

0 comments on commit b7665eb

Please sign in to comment.