Allow users to update their profile

This commit is contained in:
Alex Gleason
2023-06-11 14:41:16 -05:00
parent 009747105d
commit 860b653892
3 changed files with 51 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ import {
accountSearchController,
accountStatusesController,
relationshipsController,
updateCredentialsController,
verifyCredentialsController,
} from './controllers/api/accounts.ts';
import { appCredentialsController, createAppController } from './controllers/api/apps.ts';
@@ -61,6 +62,7 @@ app.post('/oauth/authorize', oauthAuthorizeController);
app.get('/oauth/authorize', oauthController);
app.get('/api/v1/accounts/verify_credentials', requireAuth, verifyCredentialsController);
app.patch('/api/v1/accounts/update_credentials', requireAuth, updateCredentialsController);
app.get('/api/v1/accounts/search', accountSearchController);
app.get('/api/v1/accounts/lookup', accountLookupController);
app.get('/api/v1/accounts/relationships', relationshipsController);