@@ -9,6 +9,7 @@ import { ModuleFormat } from './runtimes/node/utils/module_format.js'
9
9
import { GetSrcFilesFunction , RuntimeName , RUNTIME } from './runtimes/runtime.js'
10
10
import { RuntimeCache } from './utils/cache.js'
11
11
import { listFunctionsDirectories , resolveFunctionsDirectories } from './utils/fs.js'
12
+ import type { ExtendedRoute , Route } from './utils/routes.js'
12
13
13
14
export { Config , FunctionConfig } from './config.js'
14
15
export { zipFunction , zipFunctions , ZipFunctionOptions , ZipFunctionsOptions } from './zip.js'
@@ -33,6 +34,8 @@ export interface ListedFunction {
33
34
generator ?: string
34
35
timeout ?: number
35
36
inputModuleFormat ?: ModuleFormat
37
+ excludedRoutes ?: Route [ ]
38
+ routes ?: ExtendedRoute [ ]
36
39
}
37
40
38
41
type ListedFunctionFile = ListedFunction & {
@@ -145,10 +148,12 @@ const getListedFunction = function ({
145
148
return {
146
149
displayName : config . name ,
147
150
extension,
151
+ excludedRoutes : staticAnalysisResult ?. excludedRoutes ,
148
152
generator : config . generator ,
149
153
timeout : config . timeout ,
150
154
mainFile,
151
155
name,
156
+ routes : staticAnalysisResult ?. routes ,
152
157
runtime : runtime . name ,
153
158
runtimeAPIVersion : staticAnalysisResult ? ( staticAnalysisResult ?. runtimeAPIVersion ?? 1 ) : undefined ,
154
159
schedule : staticAnalysisResult ?. config ?. schedule ?? config . schedule ,
0 commit comments