code-server/src/node/routes/apps.ts

13 lines
273 B
TypeScript
Raw Normal View History

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
}