mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
Change structure of LawinServer
This commit is contained in:
11
structure/contentpages.js
Normal file
11
structure/contentpages.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const Express = require("express");
|
||||
const express = Express.Router();
|
||||
const functions = require("./functions.js");
|
||||
|
||||
express.get("/content/api/pages/*", async (req, res) => {
|
||||
const contentpages = functions.getContentPages(req);
|
||||
|
||||
res.json(contentpages)
|
||||
})
|
||||
|
||||
module.exports = express;
|
||||
Reference in New Issue
Block a user