Adds API login

This commit is contained in:
pikiou
2021-11-26 05:10:48 +01:00
parent 051784a6da
commit f952e24884
13 changed files with 228 additions and 14 deletions

View File

@@ -7,7 +7,6 @@ const certbotRouter: Router = Router()
certbotRouter.use((request: Request, response: Response, _next: NextFunction) => {
const filename = request.originalUrl.replace(/.*\//, "")
const resolvedPath: string = path.resolve(`../certbot/.well-known/acme-challenge/${filename}`)
console.log("response", resolvedPath)
response.setHeader("Content-Type", "text/html")
return response.sendFile(resolvedPath)
})