@silexlabs/silex 3.0.0-alpha.149 → 3.0.0-alpha.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,38 +0,0 @@
1
- /*
2
- * Silex website builder, free/libre no-code tool for makers.
3
- * Copyright (c) 2023 lexoyo and Silex Labs foundation
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU Affero General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
16
- */
17
-
18
- // import express from 'express'
19
- // import { Directus } from '@directus/sdk'
20
-
21
- export default async function(config, opts = {}) {
22
- // config.on('silex:startup:start', ({app}) => {
23
- // const router = express.Router()
24
- // router.post(['/publish', '/website', '/assets'], async function(req, res, next) {
25
- // try {
26
- // const token = req.body.token || opts.directusToken
27
- // const directus = new Directus(opts.directusUrl)
28
- // directus.storage.auth_token = token
29
- // const me = await directus.users.me.read()
30
- // next()
31
- // } catch(err) {
32
- // console.error('Publish failed in auth module. Did you provide a directus token?', err.message)
33
- // res.status(403).json({ message: err.message })
34
- // }
35
- // })
36
- // app.use(router)
37
- // })
38
- }