Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linkry API routes - scaffolding #36

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
devksingh4 committed Jan 13, 2025
commit ae80735683bf9f6e4fb1c6db318eeac3412803ea
2 changes: 1 addition & 1 deletion src/api/routes/linkry.ts
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@
import {
BaseError,
DatabaseFetchError,
NotFoundError,

Check warning on line 7 in src/api/routes/linkry.ts

GitHub Actions / Run Unit Tests

'NotFoundError' is defined but never used. Allowed unused vars must match /^_/u
NotImplementedError,
} from "../../common/errors/index.js";
import { intersection } from "../plugins/auth.js";

Check warning on line 10 in src/api/routes/linkry.ts

GitHub Actions / Run Unit Tests

'intersection' is defined but never used. Allowed unused vars must match /^_/u
import { NoDataRequest } from "../types.js";
import { DynamoDBClient, QueryCommand } from "@aws-sdk/client-dynamodb";
import { environmentConfig, genericConfig } from "common/config.js";
import { genericConfig } from "../../common/config.js";
import { unmarshall } from "@aws-sdk/util-dynamodb";

type LinkrySlugOnlyRequest = {
@@ -92,7 +92,7 @@
]);
},
},
async (request, reply) => {

Check warning on line 95 in src/api/routes/linkry.ts

GitHub Actions / Run Unit Tests

'request' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 95 in src/api/routes/linkry.ts

GitHub Actions / Run Unit Tests

'reply' is defined but never used. Allowed unused args must match /^_/u
throw new NotImplementedError({});
},
);
@@ -109,7 +109,7 @@
]);
},
},
async (request, reply) => {

Check warning on line 112 in src/api/routes/linkry.ts

GitHub Actions / Run Unit Tests

'request' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 112 in src/api/routes/linkry.ts

GitHub Actions / Run Unit Tests

'reply' is defined but never used. Allowed unused args must match /^_/u
// make sure that a user can manage this link, either via owning or being in a group that has access to it, or is a LINKS_ADMIN.
// you can only change the URL it redirects to
throw new NotImplementedError({});
Loading