fun test_example_angular do
var app = new App
app.use("/counter", new CounterAPI)
- app.use("/*", new StaticHandler("examples/angular/www/", "index.html"))
+ app.use("/*", new StaticHandler(test_path / "../www/", "index.html"))
run_test(app)
end
end
fun test_example_static_default do
var app = new App
- app.use("/", new StaticHandler("examples/static_files/public/", "default.html"))
+ app.use("/", new StaticHandler(test_path / "../public/", "default.html"))
run_test(app)
end
end
fun test_example_static_multiple do
var app = new App
- app.use("/", new StaticHandler("examples/static_files/public/"))
- app.use("/", new StaticHandler("examples/static_files/files/"))
- app.use("/static", new StaticHandler("examples/static_files/public/"))
- app.use("/static", new StaticHandler("examples/static_files/files/"))
+ app.use("/", new StaticHandler(test_path / "../public/"))
+ app.use("/", new StaticHandler(test_path / "../files/"))
+ app.use("/static", new StaticHandler(test_path / "../public/"))
+ app.use("/static", new StaticHandler(test_path / "../files/"))
run_test(app)
end
end