1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2025-01-09 17:58:45 +00:00
code-server-2/src/node/routes/apps.ts

16 lines
326 B
TypeScript
Raw Normal View History

import * as express from "express"
import { PluginAPI } from "../plugin"
/**
* Implements the /api/applications endpoint
*/
export function router(papi: PluginAPI): express.Router {
const router = express.Router()
router.get("/", async (req, res) => {
res.json(await papi.applications())
})
return router
}