File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import fastcgi/FCGIServer
6
6
7
7
8
8
HelloApplication : class extends Application {
9
- sendResponse : func (response : ResponseWriter ) {
9
+ sendResponse : func (response : ResponseWriter ) -> Bool {
10
10
response write ("Hello world from ooc!" )
11
11
return true
12
12
}
@@ -16,7 +16,7 @@ main: func {
16
16
helloApp := HelloApp new ()
17
17
server := FCGIServer new (":8000" )
18
18
19
- server install ("/" , helloApp)
19
+ server install (helloApp)
20
20
server start ()
21
21
}
22
22
Original file line number Diff line number Diff line change
1
+ use wasp
2
+ import wasp/Application
3
+
4
+ Dispatcher : class extends Application {
5
+ addRoute : func (route : String , app : Application ) {
6
+ // TODO: implement me
7
+ }
8
+
9
+ removeRoute : func (route : String ) {
10
+ // TODO: implement me
11
+ }
12
+ }
Original file line number Diff line number Diff line change @@ -5,7 +5,5 @@ Server: abstract class {
5
5
start : func -> Bool
6
6
stop : func -> Bool
7
7
8
- install : func (path : String , app : Application ) -> Int
9
- remove : func (path : String , position : Int ) -> Application
10
- removeAll : func (path : String )
8
+ application : Application
11
9
}
You can’t perform that action at this time.
0 commit comments