credentialsController --> verifyCredentialsController

This commit is contained in:
Alex Gleason 2023-05-20 14:44:18 -05:00
parent f3e42cc6a7
commit 02160f8c9e
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 4 additions and 4 deletions

View File

@ -5,8 +5,8 @@ import {
accountLookupController, accountLookupController,
accountSearchController, accountSearchController,
accountStatusesController, accountStatusesController,
credentialsController,
relationshipsController, relationshipsController,
verifyCredentialsController,
} from './controllers/api/accounts.ts'; } from './controllers/api/accounts.ts';
import { appCredentialsController, createAppController } from './controllers/api/apps.ts'; import { appCredentialsController, createAppController } from './controllers/api/apps.ts';
import { emptyArrayController, emptyObjectController } from './controllers/api/fallback.ts'; import { emptyArrayController, emptyObjectController } from './controllers/api/fallback.ts';
@ -57,7 +57,7 @@ app.post('/oauth/revoke', emptyObjectController);
app.post('/oauth/authorize', oauthAuthorizeController); app.post('/oauth/authorize', oauthAuthorizeController);
app.get('/oauth/authorize', oauthController); app.get('/oauth/authorize', oauthController);
app.get('/api/v1/accounts/verify_credentials', requireAuth, credentialsController); app.get('/api/v1/accounts/verify_credentials', requireAuth, verifyCredentialsController);
app.get('/api/v1/accounts/search', accountSearchController); app.get('/api/v1/accounts/search', accountSearchController);
app.get('/api/v1/accounts/lookup', accountLookupController); app.get('/api/v1/accounts/lookup', accountLookupController);
app.get('/api/v1/accounts/relationships', relationshipsController); app.get('/api/v1/accounts/relationships', relationshipsController);

View File

@ -4,7 +4,7 @@ import { getAuthor, getFilter, getFollows } from '@/client.ts';
import { toAccount, toStatus } from '@/transmute.ts'; import { toAccount, toStatus } from '@/transmute.ts';
import { eventDateComparator, lookupAccount } from '@/utils.ts'; import { eventDateComparator, lookupAccount } from '@/utils.ts';
const credentialsController: AppController = async (c) => { const verifyCredentialsController: AppController = async (c) => {
const pubkey = c.get('pubkey')!; const pubkey = c.get('pubkey')!;
const event = await getAuthor(pubkey); const event = await getAuthor(pubkey);
@ -109,6 +109,6 @@ export {
accountLookupController, accountLookupController,
accountSearchController, accountSearchController,
accountStatusesController, accountStatusesController,
credentialsController,
relationshipsController, relationshipsController,
verifyCredentialsController,
}; };