do4ng / zely

🛰️ a backend framework for Node.js
https://zely.netlify.app/
MIT License
1 stars 1 forks source link

Announcement: prext v0.1 #7

Closed do4ng closed 1 year ago

do4ng commented 1 year ago

v0.1 is in development

Features to be added

prext@<0.1.0-beta.4 doesn't support this features.

export $page variable so that prext knows the page data.

// pages/my-about.ts
export function get(req, res) {
  res.end("About Page");
}

export const $page = {
  path: "/about"
};

Create file page/_404.ts to handle errors.

// pages/_404.ts
export function get(req, res) {
  res.end("page not found");
}

page/users/$$.ts => /users/*

do4ng commented 1 year ago

https://github.com/do4ng/prext/blob/main/packages/prext/CHANGELOG.md#010-2023-02-21

do4ng commented 1 year ago

v1 is in development! #11