mirror of
https://onedev.site.tesses.net/crosslang/crosslangextras
synced 2026-02-09 01:25:46 +00:00
Add filter to package server and fix templates for devstudio
This commit is contained in:
12
Templates/webapp/src/main.tcross
Normal file
12
Templates/webapp/src/main.tcross
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
func WebAppMain(args)
|
||||
{
|
||||
return (ctx)=>{
|
||||
if(ctx.Path == "/")
|
||||
{
|
||||
ctx.WithMimeType("text/html").SendText(<h1>Hello, world</h1>);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user