A Deno-powered backend service for Plants vs. Zombies: MODDED. [Read-only GitHub mirror] docs.pvzm.net
express typescript expressjs plant deno jspvz pvzm game online backend plants-vs-zombies zombie javascript plants modded vs plantsvszombies openapi pvz noads
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

0.4.1: version on /api/health

Clay ab178317 5bcfcab3

+14 -11
+1 -1
README.md
··· 1 - # PVZM Backend ![v0.4.0](https://img.shields.io/badge/version-v0.2.2-darklime) 1 + # PVZM Backend ![v0.4.1](https://img.shields.io/badge/version-v0.2.2-darklime) 2 2 3 3 > A Deno-powered backend service for [Plants vs. Zombies: MODDED](https://github.com/roblnet13/pvz). This service provides APIs for uploading, downloading, listing, favoriting, and reporting user-created _I, Zombie_ levels. 4 4
+10 -9
deno.jsonc deno.json
··· 1 1 { 2 + "version": "0.4.1", 2 3 "tasks": { 3 4 "dev": "deno run --watch -P=dev --env-file=.env main.ts", 4 5 "start": "deno run -P --env-file=.env main.ts", 5 6 "compile": "deno compile -P main.ts", 6 - "compile-aarch64": "deno compile -P --target=aarch64-unknown-linux-gnu main.ts", 7 + "compile-aarch64": "deno compile -P --target=aarch64-unknown-linux-gnu main.ts" 7 8 }, 8 9 "permissions": { 9 10 "default": { ··· 11 12 "net": true, 12 13 "ffi": true, 13 14 "read": true, 14 - "write": true, 15 + "write": true 15 16 }, 16 17 "dev": { 17 18 "env": true, 18 19 "net": true, 19 20 "ffi": true, 20 21 "read": true, 21 - "write": true, 22 - }, 22 + "write": true 23 + } 23 24 }, 24 25 "lint": { 25 26 "rules": { 26 - "exclude": ["no-explicit-any"], 27 - }, 27 + "exclude": ["no-explicit-any"] 28 + } 28 29 }, 29 30 "imports": { 30 31 "@db/sqlite": "jsr:@db/sqlite@^0.12.0", ··· 45 46 "memorystore": "npm:memorystore@^1.6.7", 46 47 "passport": "npm:passport@^0.7.0", 47 48 "passport-github2": "npm:passport-github2@^0.1.12", 48 - "pako": "npm:pako@^2.1.0", 49 + "pako": "npm:pako@^2.1.0" 49 50 }, 50 51 "compilerOptions": { 51 52 "strict": true, 52 - "strictNullChecks": true, 53 - }, 53 + "strictNullChecks": true 54 + } 54 55 }
+3 -1
modules/routes/root.ts
··· 1 + import denoJson from "../../deno.json" with { type: "json" }; 2 + 1 3 import type { ServerConfig } from "../config.ts"; 2 4 3 5 export function registerRootRoute(app: any, config: ServerConfig) { ··· 12 14 }); 13 15 14 16 app.get("/api/health", (_req: any, res: any) => { 15 - res.json({ status: "ok", timestamp: new Date().toISOString() }); 17 + res.json({ status: "ok", timestamp: new Date().toISOString(), version: denoJson.version }); 16 18 }); 17 19 }