Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d9d6871f09 | |||
| 121b0429f6 | |||
| 9f78e2a221 |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "shsf-cli",
|
"name": "shsf-cli",
|
||||||
"version": "2.2.8",
|
"version": "2.2.10",
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export const createNamespaceDefinition = {
|
|||||||
const client = await getApiClient();
|
const client = await getApiClient();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await client.post("/api/namespaces", data);
|
const response = await client.post("/api/namespace", data);
|
||||||
|
|
||||||
if (response.status === 200 || response.status === 201) {
|
if (response.status === 200 || response.status === 201) {
|
||||||
console.log(
|
console.log(
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export const updateTriggerDefinition = {
|
|||||||
const client = await getApiClient();
|
const client = await getApiClient();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await client.patch(`/api/functions/${functionId}/triggers/${triggerId}`, data);
|
const response = await client.put(`/api/functions/${functionId}/triggers/${triggerId}`, data);
|
||||||
|
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
console.log(
|
console.log(
|
||||||
|
|||||||
Reference in New Issue
Block a user