aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/runners/index.ts
blob: 9998fe4cc09d281657903e5286fed1b87dbb9f27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import express from 'express'
import { runnerJobsRouter } from './jobs'
import { runnerJobFilesRouter } from './jobs-files'
import { manageRunnersRouter } from './manage-runners'
import { runnerRegistrationTokensRouter } from './registration-tokens'

const runnersRouter = express.Router()

// No api route limiter here, they are defined in child routers

runnersRouter.use('/', manageRunnersRouter)
runnersRouter.use('/', runnerJobsRouter)
runnersRouter.use('/', runnerJobFilesRouter)
runnersRouter.use('/', runnerRegistrationTokensRouter)

// ---------------------------------------------------------------------------

export {
  runnersRouter
}