mirror of
https://github.com/coder/code-server.git
synced 2026-05-08 13:27:25 +02:00
routes/apps.ts: Implement /api/applications endpoint
This commit is contained in:
12
src/node/routes/apps.ts
Normal file
12
src/node/routes/apps.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as express from "express"
|
||||
import { PluginAPI } from "../plugin"
|
||||
|
||||
export function router(papi: PluginAPI): express.Router {
|
||||
const router = express.Router()
|
||||
|
||||
router.get("/", async (req, res) => {
|
||||
res.json(await papi.applications())
|
||||
})
|
||||
|
||||
return router
|
||||
}
|
||||
Reference in New Issue
Block a user