Skip to content

Commit

Permalink
rest(/): added favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasfroeller committed Jan 24, 2024
1 parent 6a4916c commit 8bfa692
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Binary file modified rest/bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"dependencies": {
"@elysiajs/cors": "^0.8.0",
"@elysiajs/html": "^0.8.0",
"@elysiajs/static": "^0.8.1",
"@elysiajs/swagger": "^0.8.3",
"@octokit/graphql-schema": "^14.47.1",
"dotenv": "^16.3.2",
Expand Down
8 changes: 7 additions & 1 deletion rest/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
import { Elysia, t } from "elysia"; // https://elysiajs.com/introduction.html
import { cors } from '@elysiajs/cors'; // https://elysiajs.com/plugins/cors.html
import { html } from '@elysiajs/html'; // https://elysiajs.com/plugins/html.html
import { swagger } from '@elysiajs/swagger'; // https://elysiajs.com/plugins/swagger
import { staticPlugin } from '@elysiajs/static'; // https://github.com/elysiajs/elysia-static
import { Octokit } from "octokit"; // { App } // https://github.com/octokit/octokit.js
import { GraphqlResponseError } from "@octokit/graphql"; // Testing GraphQL Queries: https://docs.github.com/en/graphql/overview/explorer
import { swagger } from '@elysiajs/swagger'; // https://elysiajs.com/plugins/swagger
import { Organization, Repository } from "@octokit/graphql-schema"; // https://www.npmjs.com/package/@octokit/graphql-schema
import 'dotenv/config'; // process.env.<ENV_VAR_NAME>

const GITHUB_PAT = process.env.GITHUB_PAT;
const octokit = new Octokit({ auth: GITHUB_PAT });

const app = new Elysia()
.use(staticPlugin({
assets: "static",
prefix: "/"
}))
.use(cors({
origin: 'https://propromo.duckdns.org'
}))
Expand Down Expand Up @@ -258,6 +263,7 @@ const app = new Elysia()
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
<link rel="icon" href="/favicon.png" type="image/x-icon">
<title>Propromo RestAPI</title>
</head>
<body>
Expand Down
Binary file added rest/static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8bfa692

Please sign in to comment.