diff --git a/src/app.ts b/src/app.ts index 7f582d0..eb2a12a 100644 --- a/src/app.ts +++ b/src/app.ts @@ -5,8 +5,8 @@ import { accountLookupController, accountSearchController, accountStatusesController, - credentialsController, relationshipsController, + verifyCredentialsController, } from './controllers/api/accounts.ts'; import { appCredentialsController, createAppController } from './controllers/api/apps.ts'; import { emptyArrayController, emptyObjectController } from './controllers/api/fallback.ts'; @@ -57,7 +57,7 @@ app.post('/oauth/revoke', emptyObjectController); app.post('/oauth/authorize', oauthAuthorizeController); 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/lookup', accountLookupController); app.get('/api/v1/accounts/relationships', relationshipsController); diff --git a/src/controllers/api/accounts.ts b/src/controllers/api/accounts.ts index 589c5c0..8a0e1bc 100644 --- a/src/controllers/api/accounts.ts +++ b/src/controllers/api/accounts.ts @@ -4,7 +4,7 @@ import { getAuthor, getFilter, getFollows } from '@/client.ts'; import { toAccount, toStatus } from '@/transmute.ts'; import { eventDateComparator, lookupAccount } from '@/utils.ts'; -const credentialsController: AppController = async (c) => { +const verifyCredentialsController: AppController = async (c) => { const pubkey = c.get('pubkey')!; const event = await getAuthor(pubkey); @@ -109,6 +109,6 @@ export { accountLookupController, accountSearchController, accountStatusesController, - credentialsController, relationshipsController, + verifyCredentialsController, };