File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ Once you have Mojo up and running on your local machine,
64
64
Alternatively, start the project in Github Codespaces for quick setup:
65
65
66
66
[ ![ Open in GitHub Codespaces] ( https://github.com/codespaces/badge.svg )] ( https://codespaces.new/saviorand/lightbug_http )
67
- 2 . Add your handler in ` main.mojo ` by passing a struct that satisfies the following trait:
67
+ 2 . Add your handler in ` lightbug.π₯ ` by passing a struct that satisfies the following trait:
68
68
``` mojo
69
69
trait HTTPService:
70
70
fn func(self, req: HTTPRequest) raises -> HTTPResponse:
@@ -102,7 +102,7 @@ Once you have Mojo up and running on your local machine,
102
102
```
103
103
104
104
We plan to add routing in a future library called ` lightbug_api ` , see [ Roadmap] ( #roadmap ) for more details.
105
- 3 . Run ` mojo main.mojo ` . This will start up a server listening on ` localhost:8080 ` . Or, if you prefer to import the server into your own app:
105
+ 3 . Run ` mojo lightbug.π₯ ` . This will start up a server listening on ` localhost:8080 ` . Or, if you prefer to import the server into your own app:
106
106
``` mojo
107
107
from lightbug_http.sys.server import SysServer
108
108
from lightbug_http.service import Printer
File renamed without changes.
You canβt perform that action at this time.
0 commit comments