more to parent

This commit is contained in:
Ugric committed 2023-07-12 00:44:04 +01:00
1 parent d076e9a9fa
commit 3abbee2aa8
18 files changed
+15 -3

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
import "../../src/http" as http
import "../../src" as http
let parent = path.parent(program.file.path)
+1 -1
View File
@@ -1,4 +1,4 @@
import "../../src/http" as http
import "../../src" as http
import "../../src/bleach" as bleach
let app = http.server()
+13
View File
@@ -0,0 +1,13 @@
import "../../src" as http
let app = http.server()
app.use(http.logger)
let zipfile = path.join([path.parent(program.file.path), "test.zip"])
let download(req, res) = do
res.sendFile(zipfile)
app.route("/download", null, download)
app.run()
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
-1
View File
@@ -1 +0,0 @@
import "http/init" as *
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.