mirror of
https://github.com/coder/code-server.git
synced 2025-07-30 21:45:08 +08: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