mirror of
https://onedev.site.tesses.net/crosslang/crosslang-tutorials
synced 2026-02-08 17:15:46 +00:00
Add embeddir
This commit is contained in:
10
8 Embeddir/src/main.tcross
Normal file
10
8 Embeddir/src/main.tcross
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
func WebAppMain(args)
|
||||
{
|
||||
return new FileServer(embeddir("wwwroot"),false,false);
|
||||
}
|
||||
func main(args)
|
||||
{
|
||||
throw "Error";
|
||||
Console.WriteLine("use crosslang webapp-test to test");
|
||||
}
|
||||
Reference in New Issue
Block a user