mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-15 16:36:30 +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: {
|
self_blocked_status: {
|
||||||
user_html: {
|
user_html: {
|
||||||
enabled: true,
|
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_user_id: true,
|
||||||
db_post_n3: false,
|
db_post_n3: false,
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,17 @@ const crypto = require("crypto")
|
||||||
const db = require("../../lib/db")
|
const db = require("../../lib/db")
|
||||||
|
|
||||||
module.exports = [
|
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}) => {
|
route: "/settings", methods: ["GET"], code: async ({req, url}) => {
|
||||||
const token = getToken(req)
|
const token = getToken(req)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue