MachinesModule · packages/server/src/machines/service.ts:45

MachinesModule

http-routes

API

contributes: {
  "HttpModule.routes": [
    {
      "id": "MachinesModule.routes",
      "prefix": "/api/projects/:projectId/machines",
      "auth": "user",
      "order": 50
    },
    {
      "id": "MachinesModule.server-proxy",
      "prefix": "/server/",
      "auth": "user",
      "order": 51
    }
  ]
}

Code Half (@Bind)

@Bind("MachinesModule.routes") routes!: Hono<AppEnv>; · @Bind("MachinesModule.server-proxy") serverProxyRoutes!: Hono<AppEnv>;

Endpoints (23)

GET

/api/projects/:projectId/machines/events

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/use

MachinesModule.routes auth: user
GET

/api/projects/:projectId/machines/ssh-hosts

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/add

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/ssh-hosts

MachinesModule.routes auth: user
GET

/api/projects/:projectId/machines/ssh-hosts/:alias

MachinesModule.routes auth: user
PUT

/api/projects/:projectId/machines/ssh-hosts/:alias

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/stop-using

MachinesModule.routes auth: user
GET

/api/projects/:projectId/machines

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/probe

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/:machineId/install

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/:machineId/connect

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/:machineId/reconnect

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/:machineId/stop-reconnecting

MachinesModule.routes auth: user
GET

/api/projects/:projectId/machines/:machineId/dirs

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/:machineId/release

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/:machineId/restart

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/:machineId/stop

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/:machineId/uninstall

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/:machineId/sync

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/:machineId/diagnose

MachinesModule.routes auth: user
POST

/api/projects/:projectId/machines/:machineId/disconnect

MachinesModule.routes auth: user
ALL

/server/*

MachinesModule.server-proxy auth: user