make gulp better for static
This commit is contained in:
parent
ef2e3f242f
commit
a69b8c552f
3 changed files with 14 additions and 17 deletions
10
src/index.ts
10
src/index.ts
|
@ -135,16 +135,6 @@ async function updateInstances(): Promise<void> {
|
|||
|
||||
updateInstances();
|
||||
|
||||
app.use("/getupdates", async (_req: Request, res: Response) => {
|
||||
try {
|
||||
const stats = await fs.stat(path.join(__dirname, "webpage"));
|
||||
res.send(stats.mtimeMs.toString());
|
||||
} catch (error) {
|
||||
console.error("Error getting updates:", error);
|
||||
res.status(500).send("Error getting updates");
|
||||
}
|
||||
});
|
||||
|
||||
app.use("/services/oembed", (req: Request, res: Response) => {
|
||||
inviteResponse(req, res, instances);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue