Disable WebDav
This commit is contained in:
parent
61df58cc7b
commit
1e3833f7d0
3 changed files with 4 additions and 5 deletions
|
@ -14,11 +14,8 @@ marked.use(markedHighlight({
|
|||
}))
|
||||
|
||||
export function parseMD(file: string) {
|
||||
|
||||
const fileContents = fs.readFileSync(path.join("./", file), 'utf8')
|
||||
|
||||
const { data: metadata, content: markdownContent } = matter(fileContents)
|
||||
|
||||
const htmlContent = marked(markdownContent)
|
||||
|
||||
return {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import express from 'express'
|
||||
import { setWatcher } from './watch.js'
|
||||
import { webdavMiddleware } from "./webdav.js"
|
||||
//import { webdavMiddleware } from "./webdav.js"
|
||||
|
||||
const app = express()
|
||||
const PORT = process.env.PORT || 3000
|
||||
|
@ -8,7 +8,7 @@ const PORT = process.env.PORT || 3000
|
|||
export function serve() {
|
||||
app.use(express.static('./.build'))
|
||||
|
||||
app.use(webdavMiddleware)
|
||||
//app.use(webdavMiddleware)
|
||||
|
||||
setWatcher(url => {
|
||||
console.log(url)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/*
|
||||
import { v2 as webdav } from 'webdav-server';
|
||||
|
||||
// 1. Create a user manager and add a user
|
||||
|
@ -27,3 +28,4 @@ server.setFileSystem('/', publicFileSystem, (success) => {
|
|||
});
|
||||
|
||||
export const webdavMiddleware = webdav.extensions.express("/", server)
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue