Skip to content

Commit 651b93b

Browse files
committed
feat: tidy a little bit api
1 parent f642eca commit 651b93b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

apps/api/src/auth/oauth.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Effect } from 'effect';
2-
import { GithubUserSchema, OAuthProvider } from './schema';
3-
import { HttpClient } from '@effect/platform';
2+
import { OAuthProvider } from './schema';
43
import { google } from 'googleapis';
54
import { Octokit } from 'octokit';
65
import { assertUnreachable } from '../utils/assert';

apps/api/src/health/router.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { HttpServer } from '@effect/platform';
2-
import { Config, Effect } from 'effect';
2+
import { Effect } from 'effect';
33

44
export const HealthRouter = HttpServer.router.empty.pipe(
55
HttpServer.router.get(
66
'/health',
7-
Effect.map(Config.string('xD'), (v) =>
8-
HttpServer.response.text(v, { status: 204 }),
7+
Effect.map(HttpServer.request.ServerRequest, () =>
8+
HttpServer.response.empty({ status: 204 }),
99
),
1010
),
1111
);

0 commit comments

Comments
 (0)