Skip to content

Commit

Permalink
fix weird extra spaces in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiiks committed Jun 14, 2024
1 parent 7e8b5a4 commit 79a6e85
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ window.WaitForClose(); // Starts the application event loop
Example router:

```cs
public class ExampleRouter : Router {
public class ExampleRouter : Router {

public override string BasePath => "/";
public override string BasePath => "/";

[Route(Path = "test", Async = true, Method = Method.GET)]
public async void MyRoute(Req req, Res res) {
await Task.Delay(500);
[Route(Path = "test", Async = true, Method = Method.GET)]
public async void MyRoute(Req req, Res res) {
await Task.Delay(500);
res.Send("Example Router /test");
}
}
```

Calling from client side:
```js
async function Test() {
const res = await R.MyRoute(params);
async function Test() {
const res = await R.MyRoute(params);
}
```

Expand Down

0 comments on commit 79a6e85

Please sign in to comment.