Skip to content

Commit

Permalink
test rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol Grodzicki authored and Karol Grodzicki committed Jan 26, 2025
1 parent 208e4ba commit f9d5738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/zhp-accounts-backend/src/functions/GetMyUnits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { app, HttpRequest, HttpResponseInit, InvocationContext } from "@azure/fu
export async function GetMyUnits(request: HttpRequest, context: InvocationContext): Promise<HttpResponseInit> {
context.log(`Http function processed request for url "${request.url}"`);

const name = request.query.get('name') || await request.text() || 'world';
const name = request.query.get('name') || 'world';

return { body: `Hello, ${name}!` };
};

app.http('GetMyUnits', {
app.http('getMyUnits', {
methods: ['GET'],
authLevel: 'anonymous',
handler: GetMyUnits,
Expand Down

0 comments on commit f9d5738

Please # to comment.