mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-13 15:46:31 +00:00
Compare commits
2 commits
a9c7923b2c
...
7237ebf8d4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7237ebf8d4 | ||
|
|
dc0a80d1cb |
2 changed files with 12 additions and 5 deletions
|
|
@ -224,12 +224,8 @@ let constants = {
|
|||
self_blocked_status: {
|
||||
user_html: {
|
||||
enabled: true,
|
||||
time: 2*60*60*1000
|
||||
time: 60*60*1000
|
||||
},
|
||||
timeline_graphql: {
|
||||
enabled: true,
|
||||
time: 2*60*60*1000
|
||||
}
|
||||
},
|
||||
db_user_id: true,
|
||||
db_post_n3: false,
|
||||
|
|
|
|||
|
|
@ -7,6 +7,17 @@ const crypto = require("crypto")
|
|||
const db = require("../../lib/db")
|
||||
|
||||
module.exports = [
|
||||
{
|
||||
route: "/settings.json", methods: ["GET"], code: async ({req, url}) => {
|
||||
const token = getToken(req)
|
||||
const settings = getSettings(req)
|
||||
return {
|
||||
statusCode: 200,
|
||||
contentType: "application/json",
|
||||
content: settings
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
route: "/settings", methods: ["GET"], code: async ({req, url}) => {
|
||||
const token = getToken(req)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue