Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/src/node/routes/apps.ts

18 lines
370 B
TypeScript
Raw Normal View History

import * as express from "express"
import { PluginAPI } from "../plugin"
/**
* Implements the /api/applications endpoint
2020-11-04 03:49:10 +01:00
*
* See typings/pluginapi.d.ts for details.
*/
export function router(papi: PluginAPI): express.Router {
const router = express.Router()
router.get("/", async (req, res) => {
res.json(await papi.applications())
})
2020-11-04 03:53:16 +01:00
return router
}