adding api

This commit is contained in:
2025-02-10 18:55:08 -06:00
parent f7273cdc0b
commit 9c8468eca8
28 changed files with 693 additions and 0 deletions

17
api/main/function.json Normal file
View File

@@ -0,0 +1,17 @@
{
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"route": "{*segments}"
},
{
"type": "http",
"direction": "out",
"name": "res"
}
],
"scriptFile": "../dist/main/index.js"
}

7
api/main/index.ts Normal file
View File

@@ -0,0 +1,7 @@
import { Context, HttpRequest } from '@azure/functions';
import { AzureHttpAdapter } from '@nestjs/azure-func-http';
import { createApp } from '../src/main.azure';
export default function(context: Context, req: HttpRequest): void {
AzureHttpAdapter.handle(createApp, context, req);
}

3
api/main/sample.dat Normal file
View File

@@ -0,0 +1,3 @@
{
"name": "Azure"
}