forked from yllhwa/RSSWorker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
61 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>RSSWorker - Made with ❤</title> | ||
</head> | ||
<body> | ||
<h1>RSSWorker - Made with ❤</h1> | ||
<p>404 - Not Found</p> | ||
<p>See <a href="https://github.com/yllhwa/RSSWorker">GitHub</a> for more information.</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>RSSWorker - Made with ❤</title> | ||
</head> | ||
<body> | ||
<h1>RSSWorker - Made with ❤</h1> | ||
<p>500 - Internal Server Error</p> | ||
<p>debug message: {ERROR_MESSAGE}</p> | ||
<p>stack: <br />{ERROR_STACK}</p> | ||
<p>See <a href="https://github.com/yllhwa/RSSWorker">GitHub</a> for more information.</p> | ||
</body> | ||
</html> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import { Hono } from 'hono'; | ||
import bilibili_user_dynamic from './lib/bilibili/user/dynamic'; | ||
import telegram_channel from './lib/telegram/channel'; | ||
import weibo_user from './lib/weibo/user'; | ||
|
||
const route = new Hono(); | ||
|
||
let getDealFunc = (module) => { | ||
return module.deal; | ||
}; | ||
let plugins = [bilibili_user_dynamic, telegram_channel, weibo_user]; | ||
|
||
route.get('/bilibili/user/dynamic/:uid', getDealFunc(await import('./lib/bilibili/user/dynamic'))); | ||
// route.get('/bilibili/test', getDealFunc(await import('./lib/bilibili/user/test_grpc'))); | ||
route.get('/telegram/channel/:username', getDealFunc(await import('./lib/telegram/channel'))); | ||
route.get('/weibo/user/:uid', getDealFunc(await import('./lib/weibo/user'))); | ||
route.get('/test/:username', getDealFunc(await import('./lib/tests/HTMLRewriterTest'))); | ||
for (let plugin of plugins) { | ||
plugin.setup(route); | ||
} | ||
|
||
export default route; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters