File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff 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' ) ;
Original file line number Diff line number Diff 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 > (
You can’t perform that action at this time.
0 commit comments