Skip to content

Commit

Permalink
feat: create api routes
Browse files Browse the repository at this point in the history
  • Loading branch information
timepresent95 committed Aug 19, 2024
1 parent 21794bd commit 465bf61
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/api/routes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
export const authApis = {
signIn: 'auth/oauth/log-in',
signOut: 'auth/oauth/sign-out',
signUp: 'auth/oauth/sign-up',
validateFamilyCode: 'auth/validate/family-code',
reRegistrationAlertToken: 'auth/alert-token/re-registration',
};

export const questionApis = {
getQuestion: 'question/:family-id',
postAnswer: 'question/answer',
getAnswer: 'question/answer/:question-history-id',
patchAnser: 'question/answer/:answer-id',
getList: 'question/answer/:family-id',
cheerUp: 'question/alert/cheer-up',
};

export const myApis = {
my: 'user/:user-id',
patchMy: 'user/:user-id',
withdraw: 'user/:user-id',
};

export const surveyApis = {
getSurvey: 'survey/:user-id',
postSurvey: 'survey/:user-id',
};

export const familyApis = {
getFamilyCode: 'family/code',
refreshFamilyCode: 'family/code/:family-id',
};

0 comments on commit 465bf61

Please sign in to comment.