Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appbase-edge-function
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanjinfei
appbase-edge-function
Commits
c9e3adc2
Commit
c9e3adc2
authored
Nov 20, 2024
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init commit
parents
Pipeline
#816
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
cli-latest
supabase/.temp/cli-latest
+2
-0
index.ts
supabase/functions/update-rank/index.ts
+32
-0
No files found.
supabase/.temp/cli-latest
0 → 100644
View file @
c9e3adc2
v1.223.10
\ No newline at end of file
supabase/functions/update-rank/index.ts
0 → 100644
View file @
c9e3adc2
// Follow this setup guide to integrate the Deno language server with your editor:
// https://deno.land/manual/getting_started/setup_your_environment
// This enables autocomplete, go to definition, etc.
// Setup type definitions for built-in Supabase Runtime APIs
import
"
jsr:@supabase/functions-js/edge-runtime.d.ts
"
console
.
log
(
"
Hello from Functions!
"
)
Deno
.
serve
(
async
(
req
)
=>
{
const
{
name
}
=
await
req
.
json
()
const
data
=
{
message
:
`Hello
${
name
}
!`
,
}
return
new
Response
(
JSON
.
stringify
(
data
),
{
headers
:
{
"
Content-Type
"
:
"
application/json
"
}
},
)
})
/* To invoke locally:
1. Run `supabase start` (see: https://supabase.com/docs/reference/cli/supabase-start)
2. Make an HTTP request:
curl -i --location --request POST 'http://127.0.0.1:54321/functions/v1/hello-world' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{"name":"Functions"}'
*/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment