mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-24 10:00:52 -04:00
23 lines
520 B
TypeScript
23 lines
520 B
TypeScript
import { Type } from '@fastify/type-provider-typebox';
|
|
|
|
export const coderoadChallengeCompleted = {
|
|
body: Type.Object({
|
|
tutorialId: Type.String()
|
|
}),
|
|
headers: Type.Object({ 'coderoad-user-token': Type.String() }),
|
|
response: {
|
|
200: Type.Object({
|
|
type: Type.Literal('success'),
|
|
msg: Type.String()
|
|
}),
|
|
400: Type.Object({
|
|
type: Type.Literal('error'),
|
|
msg: Type.String()
|
|
}),
|
|
500: Type.Object({
|
|
type: Type.Literal('danger'),
|
|
msg: Type.String()
|
|
})
|
|
}
|
|
};
|