add simple admin service
Build and deploy / deploy (push) Successful in 16s

This commit is contained in:
2026-05-18 02:48:47 +03:00
parent 10a83d39a2
commit 3a3b2bcfc0
84 changed files with 2134 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
const adminRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..', '..');
const repoRoot = resolve(adminRoot, '..');
const webRoot = resolve(repoRoot, 'web');
export const paths = {
adminPublicRoot: resolve(adminRoot, 'public'),
articlesFile: resolve(webRoot, 'data', 'articles.json'),
uploadRoot: resolve(webRoot, 'public', 'assets', 'uploads'),
webPublicRoot: resolve(webRoot, 'public'),
};