gy-chen / RSSHubApp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RSSHubApp

Create new routes in RSSHub without changing RSSHub source code.

Getting Started

Create project and install RSSHub

mkdir my-custom-rsshub
cd my-custom-rsshub
npm init
npm install rsshub

Code new route scripts. Create setting.json in the project root, then define route path and corresponding script in your setting.json.

{
    "routes": {
        "/my-custom-route": "path/to/myCustomRoute.js",
        "/my-custom-route2": "path/to/anotherCustomRoute.js"
    }
}

Start RSSHub

npx rsshubapp

Explore the new routes

http://localhost:1200/my-custom-route

About


Languages

Language:JavaScript 100.0%