Skip to content

Commit eac6e0d

Browse files
committed
chore: use single quotes in all http-* template source files
Signed-off-by: Thorsten Hans <[email protected]>
1 parent 5f8d5a7 commit eac6e0d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/http-js/content/src/index.js.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ let router = AutoRouter();
3131
// Any route that does not return will be treated as a middleware
3232
// Any unmatched route will return a 404
3333
router
34-
.get("/", () => new Response("Hello, Spin!"))
34+
.get('/', () => new Response('Hello, Spin!'))
3535
.get('/hello/:name', ({ name }) => `Hello, ${name}!`)
3636

3737
addEventListener('fetch', (event) => {
3838
event.respondWith(router.fetch(event.request));
3939
});
4040
{% else %}
4141
function handle(_request) {
42-
return new Response("Hello, Spin!", {
42+
return new Response('Hello, Spin!', {
4343
status: 200,
4444
headers: {
4545
'content-type': 'text/plain'

templates/http-ts/content/src/index.ts.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let router = AutoRouter();
3232
// Any route that does not return will be treated as a middleware
3333
// Any unmatched route will return a 404
3434
router
35-
.get("/", () => new Response("Hello, Spin!"))
35+
.get('/', () => new Response('Hello, Spin!'))
3636
.get('/hello/:name', ({ name }) => `Hello, ${name}!`)
3737

3838
//@ts-ignore
@@ -41,7 +41,7 @@ addEventListener('fetch', (event: FetchEvent) => {
4141
});
4242
{% else %}
4343
function handle(_request: Request): Response {
44-
return new Response("Hello, Spin!", {
44+
return new Response('Hello, Spin!', {
4545
status: 200,
4646
headers: {
4747
'content-type': 'text/plain'

0 commit comments

Comments
 (0)