Skip to content

Commit

Permalink
push to production
Browse files Browse the repository at this point in the history
  • Loading branch information
ihsangan committed Aug 5, 2024
1 parent 8eb646b commit ce153d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ https://api.isan.eu.org/nickname/
```
## Output
application/json; charset=utf-8 ([RFC4627](https://datatracker.ietf.org/doc/html/rfc4627))
```
{
"success": boolean,
"game": "string",
"id": number/"string",
"zoneId": number,
"server": "string",
"name": "string",
"message": "string"
```ts
interface Result {
success: boolean;
game?: string;
id?: number | string;
zoneId?: number;
server?: string,
name?: string;
message?: string;
}
```
# Daftar game
Expand Down
1 change: 1 addition & 0 deletions src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default async function checkCache(request: Request): Promise<Response> {
}
response = new Response(response.body, response);
response.head
response.headers.delete('Cache-Control');
response.headers.append('X-Response-Time', timeNow() - now);
return response;
} else {
Expand Down
2 changes: 1 addition & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "validev"
name = "validator"
main = "./src/index.ts"
workers_dev = true
compatibility_date = "2022-01-01"
Expand Down

0 comments on commit ce153d4

Please sign in to comment.