13 lines
273 B
TypeScript
13 lines
273 B
TypeScript
|
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
|
||
|
}
|