-
Notifications
You must be signed in to change notification settings - Fork 11
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
1 parent
2006512
commit 46e7dc9
Showing
2 changed files
with
17 additions
and
0 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,15 @@ | ||
const express = require('express'); | ||
const scraper = require('./scraper'); | ||
const defaultRouter = express.Router(); | ||
|
||
const baseUrl = 'https://rule34.xxx/index.php?page=dapi&s=post&q=index' | ||
|
||
defaultRouter.get('/', function (req, res) { | ||
res.json({ | ||
message: "This is a wrapper for the rule34 api. For more info see /~https://github.com/KuroZen/r34-json-api#readme", | ||
posts: process.env.HOST + "/posts", | ||
comments: process.env.HOST + "/comments" | ||
}); | ||
}); | ||
|
||
module.exports = defaultRouter; |
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