mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-05-26 12:32:25 +00:00
Implement takedown system
This commit is contained in:
parent
741a1199dd
commit
b9f703086f
10 changed files with 111 additions and 2 deletions
10
api/takedown.js
Normal file
10
api/takedown.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
const constants = require("../utils/constants")
|
||||
const {render} = require("pinski/plugins")
|
||||
|
||||
module.exports = [
|
||||
{
|
||||
route: "/takedown", methods: ["GET"], code: async () => {
|
||||
return render(200, "pug/takedown.pug", {constants})
|
||||
}
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue