fix: add routes

This commit is contained in:
DIYgod
2024-03-09 03:24:53 +08:00
parent 45f9ea21fb
commit 76e7e8296b
1436 changed files with 7684 additions and 0 deletions

View File

@@ -33,6 +33,17 @@ export const route: Route = {
name: 'Database',
maintainers: ['curly210102'],
handler,
description: `There is an optional query parameter called \`properties=\` that can be used to customize field mapping. There are three built-in fields: author, pubTime and link, which can be used to add additional information.
For example, if you have set up three properties in your database - "Publish Time", "Author", and "Original Article Link" - then execute the following JavaScript code to get the result for the properties parameter.
\`\`\`js
encodeURIComponent(JSON.stringify({"pubTime": "Publish Time", "author": "Author", "link": "Original Article Link"}))
\`\`\`
There is an optional query parameter called \`query=\` that can be used to customize the search rules for your database, such as custom sorting and filtering rules.
please refer to the [Notion API documentation](https://developers.notion.com/reference/post-database-query) and execute \`encodeURIComponent(JSON.stringify(custom rules))\` to provide the query parameter.`,
};
async function handler(ctx) {