Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
17 changed files
with
72 additions
and
67 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
6 changes: 3 additions & 3 deletions
6
src/routes/auth/github/index.ts → src/routes/api/auth/github/index.ts
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
6 changes: 3 additions & 3 deletions
6
src/routes/auth/google/index.ts → src/routes/api/auth/google/index.ts
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
6 changes: 3 additions & 3 deletions
6
src/routes/auth/twitter/index.ts → src/routes/api/auth/twitter/index.ts
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
6 changes: 3 additions & 3 deletions
6
src/routes/connect/github/index.ts → src/routes/api/connect/github/index.ts
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
6 changes: 3 additions & 3 deletions
6
src/routes/connect/google/index.ts → src/routes/api/connect/google/index.ts
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
6 changes: 3 additions & 3 deletions
6
src/routes/connect/twitter/index.ts → src/routes/api/connect/twitter/index.ts
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,18 @@ | ||
import { Router } from 'express'; | ||
import authRoutes from './auth'; | ||
import connectRoutes from './connect'; | ||
import meRoutes from './me'; | ||
import organizationRoutes from './organization'; | ||
import teamRoutes from './team'; | ||
import userRoutes from './user'; | ||
|
||
const router = Router(); | ||
|
||
router.use('/auth', authRoutes); | ||
router.use('/connect', connectRoutes); | ||
router.use('/me', meRoutes); | ||
router.use('/organizations', organizationRoutes); | ||
router.use('/teams', teamRoutes); | ||
router.use('/users', userRoutes); | ||
|
||
export default 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
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,28 +1,18 @@ | ||
import { Request, Response, Router } from 'express'; | ||
import apiRoutes from './api'; | ||
import apiDocs from './api-docs'; | ||
import authRoutes from './auth'; | ||
import connectRoutes from './connect'; | ||
import error404 from './error-404'; | ||
import healthcheck from './healthcheck'; | ||
import logoutRoutes from './logout'; | ||
import meRoutes from './me'; | ||
import organizationRoutes from './organization'; | ||
import teamRoutes from './team'; | ||
import userRoutes from './user'; | ||
|
||
const router = Router(); | ||
|
||
router.route('/').get((_request: Request, response: Response) => response.redirect('/api-docs')); | ||
|
||
router.use(apiDocs); | ||
router.use(authRoutes); | ||
router.use(connectRoutes); | ||
router.use(healthcheck); | ||
router.use(logoutRoutes); | ||
router.use(meRoutes); | ||
router.use(organizationRoutes); | ||
router.use(teamRoutes); | ||
router.use(userRoutes); | ||
router.use(error404); | ||
router.use('/api-docs', apiDocs); | ||
router.use('/healthcheck', healthcheck); | ||
router.use('/logout', logoutRoutes); | ||
router.use('/api', apiRoutes); | ||
router.use('*', error404); | ||
|
||
export default 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