Skip to content

Commit dd255e0

Browse files
committed
feat: add default path
1 parent 9fba33c commit dd255e0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

action/src/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ if(appServerInput) {
1818
}
1919
appServerInput.url = new URL(appServerInput.url as string);
2020

21-
2221
if ('auth' in appServerInput && appServerInput.auth !== null) {
2322
if (typeof appServerInput.auth !== 'object') {
2423
throw new Error('input app-server.auth must be an object');

server/src/app.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ export function appInit(prepare?: (app: Hono) => void) {
4242
app.use(bodyLimit({maxSize: 100 * 1024})); // 100kb
4343
app.use(prettyJSON());
4444

45+
app.get('/', (context) => {
46+
return context.text('https://github.com/qoomon/actions--access-token');
47+
});
48+
4549
// --- handle access token request -----------------------------------------------------------------------------------
4650
app.post('/access_tokens',
4751
tokenAuthenticator<GitHubActionsJwtPayload>(

0 commit comments

Comments
 (0)